eolas-api/src/index.js

16 lines
344 B
JavaScript
Raw Normal View History

import express from "express"
import entries from "./routes/entries.js"
import tags from "./routes/tags.js"
const app = express()
const port = process.env.PORT || 3000
app.use(express.json())
app.use("/entries", entries)
app.use("/tags", tags)
app.listen(port, () => {
console.info(`INFO Server running at http://localhost:${port}`)
})