2020-02-07 16:55:43 +00:00
|
|
|
const server = require("./api/server");
|
|
|
|
|
|
|
|
server.get("/", (req, res) => {
|
|
|
|
res.json({
|
|
|
|
message: `API server for Dijkstra. :)`,
|
2020-02-08 19:50:22 +00:00
|
|
|
documentation: `Check out: https://github.com/ruihildt/dijkstra/tree/completed-backend`
|
2020-02-07 16:55:43 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
const PORT = process.env.PORT || 4000;
|
|
|
|
|
|
|
|
server.listen(PORT, () => {
|
|
|
|
console.log(`Listening on port ${PORT}...`);
|
|
|
|
});
|