DBLabs/abitur_list_client/index.js

25 lines
898 B
JavaScript
Raw Normal View History

const express = require('express')
const abiturRouter = require('./routes/abitur.routes')
const examResultRouter = require('./routes/examresult.routes')
const specializationRouter = require('./routes/specialization.routes')
const educationFormRouter = require('./routes/educationform.routes')
const requestRouter = require('./routes/request.routes')
const request_examresultRouter = require('./routes/request_examresult.routes')
const enrollmentRouter = require('./routes/enrollment.routes')
const PORT = process.env.PORT || 8080
const app = express()
app.use(express.json())
app.use('/api', abiturRouter)
app.use('/api', examResultRouter)
app.use('/api', specializationRouter)
app.use('/api', educationFormRouter)
app.use('/api', requestRouter)
app.use('/api', request_examresultRouter)
app.use('/api', enrollmentRouter)
app.listen(PORT, () => console.log('server started on port ' + PORT))