2016-12-28 23:49:51 +01:00
|
|
|
/**
|
|
|
|
* Himasaku Server
|
|
|
|
*/
|
|
|
|
|
|
|
|
import * as express from 'express';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Init app
|
|
|
|
*/
|
|
|
|
const app = express();
|
|
|
|
|
|
|
|
app.disable('x-powered-by');
|
|
|
|
app.locals.cache = true;
|
|
|
|
|
|
|
|
app.get('/himasaku.png', (req, res) => {
|
2017-04-14 13:45:37 +02:00
|
|
|
res.sendFile(`${__dirname}/assets/himasaku.png`);
|
2016-12-28 23:49:51 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
app.get('*', (req, res) => {
|
2017-04-14 13:45:37 +02:00
|
|
|
res.sendFile(`${__dirname}/assets/index.html`);
|
2016-12-28 23:49:51 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = app;
|