mirror of
https://github.com/directus/directus.git
synced 2026-01-29 14:48:02 -05:00
Clean up app
This commit is contained in:
11
src/app.ts
11
src/app.ts
@@ -5,7 +5,7 @@ import express from 'express';
|
||||
import bodyParser from 'body-parser';
|
||||
import logger from 'express-pino-logger';
|
||||
|
||||
import { errorHandler, ErrorCode } from './error';
|
||||
import { errorHandler } from './error';
|
||||
|
||||
import initLoaders from './middleware/init-loaders';
|
||||
import extractToken from './middleware/extract-token';
|
||||
@@ -29,15 +29,6 @@ import webhooksRouter from './routes/webhooks';
|
||||
|
||||
import notFoundHandler from './routes/not-found';
|
||||
|
||||
// import sendMail from './mail';
|
||||
|
||||
// sendMail({
|
||||
// to: 'rijkvanzanten@me.com',
|
||||
// subject: 'Test Email',
|
||||
// text: 'Hi there!',
|
||||
// html: '<h1>Hi there!</h1>',
|
||||
// });
|
||||
|
||||
const app = express()
|
||||
.disable('x-powered-by')
|
||||
.use(logger())
|
||||
|
||||
Reference in New Issue
Block a user