GT-Manual / lib /server.js
wuliya
upload
072e993
raw
history blame
390 Bytes
import './config/init.js'
import ListenerLoader from './loader/listener.js'
import cfg from './config/config.js'
import express from 'express'
export default class Server {
constructor (app) {
/** Express */
this.app = app
this.cfg = cfg
}
static async run () {
let server = new Server(express())
await ListenerLoader.create(server).run()
return server
}
}