Initial commit 🍀

This commit is contained in:
syuilo
2016-12-29 07:49:51 +09:00
commit b3f42e62af
405 changed files with 31017 additions and 0 deletions

9
src/web/serve-app.ts Normal file
View File

@@ -0,0 +1,9 @@
import * as path from 'path';
import * as express from 'express';
import * as ms from 'ms';
export default (name: string) => (req: express.Request, res: express.Response) => {
res.sendFile(path.resolve(`${__dirname}/app/${name}/view.html`), {
maxAge: ms('7 days')
});
};