DBLabs/abitur_list_client/index.js

12 lines
279 B
JavaScript
Raw Normal View History

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))