mirror of
https://github.com/andrigamerita/simpkey
synced 2025-06-05 22:09:26 +02:00
ひととおり動いた
This commit is contained in:
19
src/app.ts
Normal file
19
src/app.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import Koa from 'koa';
|
||||
import { router, render } from '.';
|
||||
import config from './config';
|
||||
import session from 'koa-session';
|
||||
import bodyParser from 'koa-bodyparser';
|
||||
|
||||
|
||||
const app = new Koa();
|
||||
|
||||
console.log('Simpkey v' + config.version);
|
||||
|
||||
app.use(bodyParser());
|
||||
app.use(render);
|
||||
app.use(router.routes());
|
||||
app.use(router.allowedMethods());
|
||||
|
||||
console.log('App launched!');
|
||||
|
||||
app.listen(3000);
|
Reference in New Issue
Block a user