@samitouri / QOSami-HFS / commits / 23a2b35a

console title #292

Massimo Melina committed Jul 18, 2023 at 22:24 UTC 23a2b35a8ffa4ce893a67a32b1d112209cfd76e6
1 file changed +3 -2
src/index.ts
+3 -2
@@ -5,7 +5,7 @@ import Koa from 'koa'
5 import mount from 'koa-mount'
6 import './consoleLog'
7 import { apiMiddleware } from './apiMiddleware'
8 -import { API_URI, DEV } from './const'
8 +import { API_URI, DEV, VERSION } from './const'
9 import { frontEndApis } from './frontEndApis'
10 import { logMw } from './log'
11 import { pluginsMiddleware } from './plugins'
@@ -20,8 +20,9 @@ import _ from 'lodash'
20 import { randomId } from './misc'
21 import session from 'koa-session'
22
23 -ok(_.intersection(Object.keys(frontEndApis), Object.keys(adminApis)).length === 0) // they share same endpoints
23 +ok(_.intersection(Object.keys(frontEndApis), Object.keys(adminApis)).length === 0) // they share same endpoints, don't clash
24
25 +process.title = 'HFS ' + VERSION
26 const keys = process.env.COOKIE_SIGN_KEYS?.split(',') || [randomId(30)]
27 export const app = new Koa({ keys })
28 app.use(someSecurity)