NSFW-API / src /index.ts
hsukqilee's picture
Update src/index.ts
d3dba6b
raw
history blame contribute delete
399 Bytes
import 'reflect-metadata';
import 'module-alias/register';
import express from 'express';
import bodyParser from 'body-parser';
import {ControllersLoader} from 'simple-ts-express-decorators';
import {NsfwController} from 'app/controllers/NsfwController';
const app = express();
app.use(bodyParser.json());
new ControllersLoader({
controllers: [NsfwController]
}).load(app);
app.listen(7860);