1
0
mirror of https://github.com/andrigamerita/simpkey synced 2025-06-05 22:09:26 +02:00

ひととおり動いた

This commit is contained in:
Xeltica
2020-07-24 01:14:28 +09:00
commit b958350d0f
21 changed files with 3559 additions and 0 deletions

19
src/app.ts Normal file
View 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);