You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
602 B
20 lines
602 B
const express = require('express'); |
|
const bodyParser = require('body-parser'); |
|
const authRoutes = require('./src/auth/routes'); |
|
const caseRoutes = require('./src/case_data/routes'); |
|
const caseCategory = require('./src/enum_data/routes') |
|
|
|
const app = express() |
|
const port = 5000; |
|
|
|
app.use(bodyParser.json({ limit: '50mb' })); |
|
app.use(bodyParser.urlencoded({ limit: '50mb', extended: true })); |
|
|
|
app.use(express.json()); |
|
|
|
|
|
app.use("/api/v1/auth", authRoutes); |
|
app.use("/api/v1/case", caseRoutes); |
|
app.use("/api/v1/enum", caseCategory); |
|
|
|
app.listen(port, () => console.log(`app listening on port ${port}`)) |