Initial Commit

This commit is contained in:
Rajarshee Chatterjee
2020-12-23 15:58:41 +05:30
commit 6c658870b3
5 changed files with 1851 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
const express = require("express");
const app = express();
app.use(
express.json({
extended: false,
})
);
app.get("/", (req, res) =>
res.json({
Author: "Rajarshee Chatterjee",
Version: "1.0.0",
Github: "https://github.com/rajarsheechatterjee/LNReader-backend",
})
);
app.use("/api/", require("./api/latest"));
const PORT = process.env.PORT || 5000;
app.listen(PORT, () => console.log(`Server started on port ${PORT}`));