summaryrefslogtreecommitdiff
path: root/src/himasaku/server.ts
blob: e4fb0ef1777e31d9ac9fbb3e896a06742b7c31e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
 * 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) => {
	res.sendFile(__dirname + '/resources/himasaku.png');
});

app.get('*', (req, res) => {
	res.sendFile(__dirname + '/resources/index.html');
});

module.exports = app;