Jonatan Nilsson
098b7e5f14
Some checks reported errors
continuous-integration/appveyor/branch AppVeyor build cancelled
18 lines
521 B
JavaScript
18 lines
521 B
JavaScript
import config from '../base/config.mjs'
|
|
import Parent from '../base/server.mjs'
|
|
import ServeHandler from './serve.mjs'
|
|
|
|
export default class Server extends Parent {
|
|
init() {
|
|
super.init()
|
|
let localUtil = new this.core.sc.Util(import.meta.url)
|
|
|
|
this.routes.serve = new ServeHandler({
|
|
pageRoutes: this.routes.page,
|
|
articleRoutes: this.routes.article,
|
|
root: localUtil.getPathFromRoot('../public'),
|
|
version: this.core.app.running,
|
|
frontend: config.get('frontend:url'),
|
|
})
|
|
}
|
|
}
|