Fixed routing and publicInfoPage.
This commit is contained in:
@ -11,7 +11,7 @@ const allowedURLs: Array<string> = JSON.parse(fs.readFileSync('allowedStaticPath
|
||||
const recordedURLs: Array<string> = [];
|
||||
const debugMode: boolean = JSON.parse(fs.readFileSync('allowedStaticPaths.json', 'utf8')).debugMode;
|
||||
|
||||
Router.use('*', (req: Request, res: Response) => {
|
||||
Router.get('*', (req: Request, res: Response) => {
|
||||
if (debugMode) {
|
||||
res.sendFile(Path.join(__path, 'node_modules', req.params[0]));
|
||||
recordedURLs.push(req.params[0]);
|
||||
|
Reference in New Issue
Block a user