learn-request-queue/src/app.ts

14 lines
341 B
TypeScript
Raw Normal View History

2020-06-24 21:34:53 +00:00
import * as config from "./config";
import express from "express";
import db from "./db";
const app = express();
app.use(express.static('public'));
app.use(express.json());
app.get("/test", (request, response) => response.send("Test"))
const server = app.listen(config.port, () => {
console.log(`Listening on port ${config.port}`);
});