apblog/index.js

23 lines
387 B
JavaScript
Raw Normal View History

2019-02-18 20:30:11 +00:00
const express = require("express");
const app = express();
// function exitHandler() {
// }
// process.on("exit", exitHandler);
// process.on("SIGINT", exitHandler);
// app.post("/ap/inbox", (req, res) => {
// });
2019-02-18 20:31:02 +00:00
app.get("/", (req, res) => {
res.end("Hello, world!");
});
const port = process.env.PORT || 8083;
2019-02-18 20:30:11 +00:00
app.listen(port, () => {
console.log(`Listening on ${port}`);
});