Basic Routes

This commit is contained in:
Edward-1100
2025-11-19 17:52:29 -07:00
parent 0d33259f1e
commit a8fc313af3
10 changed files with 6341 additions and 31 deletions

View File

@@ -1,15 +1,7 @@
//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}`)
})
import app from "./app.js";
const PORT = process.env.PORT || 3000;
app.listen(PORT, () => {
console.log(`Transit API http://localhost:${PORT}`);
});