mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-16 21:06:27 +01:00
10 lines
276 B
TypeScript
10 lines
276 B
TypeScript
|
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')
|
||
|
});
|
||
|
};
|