换用 npm/so.* 库

This commit is contained in:
Luk Lu
2021-01-25 08:52:30 +08:00
parent ebab1a3122
commit a3665cacdf
2 changed files with 6 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ const Config = Object.assign(
],
*/
},
require('sysconfig')
require('so.sysconfig')
)
if (typeof Config.ssl === 'string') {
Config.ssl = eval(`(${Config.ssl})`)
@@ -25,7 +25,7 @@ if (typeof Config.ssl === 'string') {
const express = require('express')
const server = express()
const webtoken = require('webtoken')
const webtoken = require('so.webtoken')
/*** 通用中间件 ***/
server.use(require('morgan')('development' === server.get('env') ? 'dev' : 'combined'))