errors.ts: Convert require to import

Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
David Mehren 2020-04-25 21:34:51 +02:00
parent 5cda02590b
commit 2121e271ac
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB

View file

@ -1,4 +1,4 @@
const config = require('./config')
import { config } from './config'
function responseError (res, code: number, detail: string, msg: string): void {
res.status(code).render('error.ejs', {