File size: 390 Bytes
072e993
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
  }
}