mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-24 20:14:35 -04:00
errors.ts: Convert require to import
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
5cda02590b
commit
2121e271ac
1 changed files with 1 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
const config = require('./config')
|
import { config } from './config'
|
||||||
|
|
||||||
function responseError (res, code: number, detail: string, msg: string): void {
|
function responseError (res, code: number, detail: string, msg: string): void {
|
||||||
res.status(code).render('error.ejs', {
|
res.status(code).render('error.ejs', {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue