12 lines
279 B
JavaScript
12 lines
279 B
JavaScript
const express = require('express')
|
|
|
|
const abiturRouter = require('./routes/abitur.routes')
|
|
|
|
const PORT = process.env.PORT || 8080
|
|
|
|
const app = express()
|
|
|
|
app.use(express.json())
|
|
app.use('/api', abiturRouter)
|
|
|
|
app.listen(PORT, () => console.log('server started on port ' + PORT)) |