basic dal and json
This commit is contained in:
14
start.js
14
start.js
@@ -1 +1,15 @@
|
||||
//Starts
|
||||
const express = require('express')
|
||||
const { DAL } = require('./src/dal/staticDal')
|
||||
const app = express()
|
||||
const port = 3000
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.json(DAL.getVehicles())
|
||||
|
||||
})
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`Example app listening on port ${port}`)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user