-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
28 lines (22 loc) · 892 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const express = require('express')
const dotenv = require('dotenv')
const cors = require('cors')
dotenv.config()
const app = express()
app.use(express.json({ type: 'application/json' }))
app.use(express.urlencoded({ extended: true }));
app.use(cors())
/**
* @routes Rutas principales de la aplicación
*/
app.use('/auth', require('./src/routes/auth'))
app.use('/speciality', require('./src/routes/speciality'))
app.use('/doctor', require('./src/routes/doctor'))
app.use('/patient', require('./src/routes/patient'))
app.use('/appoiment', require('./src/routes/appoiments'))
app.use('/recovery-password', require('./src/routes/recovery_password'))
app.use('/history', require('./src/routes/history'))
app.use('/reports', require('./src/routes/reports'))
app.listen(process.env.SERVER_PORT, () => {
console.log(`Servidor corriendo en http://localhost:${process.env.SERVER_PORT}`)
})