add filters for archive raids. add date/time on raid details
This commit is contained in:
@@ -7,11 +7,15 @@ import { resolve } from 'path';
|
||||
import { enableProdMode } from '@angular/core';
|
||||
const domino = require('domino');
|
||||
const win = domino.createWindow('');
|
||||
const fetch = require('node-fetch');
|
||||
|
||||
global['window'] = win;
|
||||
global['document'] = win.document;
|
||||
global['alert'] = console.log
|
||||
global['XMLHttpRequest'] = require('xmlhttprequest').XMLHttpRequest;
|
||||
global['fetch'] = fetch.default;
|
||||
|
||||
|
||||
|
||||
export async function attachExpress(app, staticDir = "./dist", logger = console) {
|
||||
const STATIC_FOLDER = resolve(process.cwd(), staticDir);
|
||||
@@ -54,6 +58,10 @@ export async function attachExpress(app, staticDir = "./dist", logger = console)
|
||||
|
||||
app.get('*', (req, res) => {
|
||||
//console.log('*', req.path);
|
||||
res.render(resolve(STATIC_FOLDER, 'browser/index'), { req, res })
|
||||
try{
|
||||
res.render(resolve(STATIC_FOLDER, 'browser/index'), { req, res })
|
||||
}catch(e){
|
||||
loggerService.error(e)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user