mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-17 06:59:01 +01:00
9 lines
277 B
TypeScript
9 lines
277 B
TypeScript
import * as path from 'path';
|
|
import * as express from 'express';
|
|
import ms = require('ms');
|
|
|
|
export default (name: string) => (req: express.Request, res: express.Response) => {
|
|
res.sendFile(path.resolve(`${__dirname}/app/${name}/view.html`), {
|
|
maxAge: ms('7 days')
|
|
});
|
|
};
|