access log
This commit is contained in:
Generated
+5
@@ -4227,6 +4227,11 @@
|
||||
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
|
||||
"integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="
|
||||
},
|
||||
"rate-limiter-flexible": {
|
||||
"version": "2.1.10",
|
||||
"resolved": "https://registry.npmjs.org/rate-limiter-flexible/-/rate-limiter-flexible-2.1.10.tgz",
|
||||
"integrity": "sha512-Pa+8TPD4xYaiCUB5K4a/+j2FHDUe4HP1g49JmKEmkOkhqPaeVqxJsZuuVaza/svSCOT+V73vtsyBiSFK/e1yXw=="
|
||||
},
|
||||
"raw-body": {
|
||||
"version": "2.4.0",
|
||||
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz",
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
"ngx-cookie-service": "^2.4.0",
|
||||
"node-fetch": "^2.6.0",
|
||||
"path": "^0.12.7",
|
||||
"rate-limiter-flexible": "^2.1.10",
|
||||
"reflect-metadata": "^0.1.13",
|
||||
"rimraf": "^3.0.0",
|
||||
"rpclibrary": "^2.0.1",
|
||||
|
||||
@@ -39,7 +39,7 @@ export class FrontworkAdmin
|
||||
config: RPCConfigLoader<AdminConf>
|
||||
rpcServer: RPCServer
|
||||
|
||||
private express
|
||||
private express : express.Application
|
||||
private httpServer
|
||||
|
||||
constructor(private frontworkComponents: FrontworkComponent[] = []) {
|
||||
@@ -158,6 +158,7 @@ export class FrontworkAdmin
|
||||
res.status(404)
|
||||
}
|
||||
})
|
||||
|
||||
return this.express
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ export async function attachExpress(app, staticDir = "./dist", logger = console)
|
||||
);
|
||||
|
||||
app.get('*', (req, res) => {
|
||||
//console.log('*', req.path);
|
||||
loggerService.log(req.path, req.ip)
|
||||
try{
|
||||
res.render(resolve(STATIC_FOLDER, 'browser/index'), { req, res })
|
||||
}catch(e){
|
||||
|
||||
Reference in New Issue
Block a user