Add support for view engines, PNPM
This commit is contained in:
@@ -11,6 +11,7 @@ import {InjectSessionHTTPModule} from "../http/kernel/module/InjectSessionHTTPMo
|
||||
import {PersistSessionHTTPModule} from "../http/kernel/module/PersistSessionHTTPModule";
|
||||
import {MountActivatedRouteHTTPModule} from "../http/kernel/module/MountActivatedRouteHTTPModule";
|
||||
import {ExecuteResolvedRouteHandlerHTTPModule} from "../http/kernel/module/ExecuteResolvedRouteHandlerHTTPModule";
|
||||
import {error} from "../http/response/ErrorResponseFactory";
|
||||
|
||||
@Singleton()
|
||||
export class HTTPServer extends Unit {
|
||||
@@ -76,7 +77,12 @@ export class HTTPServer extends Unit {
|
||||
.run()
|
||||
.catch(e => this.logging.error(e))
|
||||
|
||||
await this.kernel.handle(extolloReq)
|
||||
try {
|
||||
await this.kernel.handle(extolloReq)
|
||||
} catch (e) {
|
||||
await error(e).write(extolloReq)
|
||||
}
|
||||
|
||||
await extolloReq.response.send()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user