fix(core): update
This commit is contained in:
14
ts/servertools/tools.manifest.ts
Normal file
14
ts/servertools/tools.manifest.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import * as plugins from '../typedserver.plugins.js';
|
||||
|
||||
export const setupManifest = async (
|
||||
expressInstanceArg: plugins.express.Application,
|
||||
manifestArg: plugins.smartmanifest.ISmartManifestConstructorOptions
|
||||
) => {
|
||||
const smartmanifestInstance = new plugins.smartmanifest.SmartManifest(manifestArg);
|
||||
expressInstanceArg.get('/manifest.json', async (req, res) => {
|
||||
res.status(200);
|
||||
res.type('json');
|
||||
res.write(smartmanifestInstance.jsonString());
|
||||
res.end();
|
||||
});
|
||||
};
|
Reference in New Issue
Block a user