mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-20 18:05:04 +01:00
24 lines
372 B
TypeScript
24 lines
372 B
TypeScript
|
/**
|
||
|
* 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;
|