15 lines
281 B
JavaScript
15 lines
281 B
JavaScript
|
const server = require("./api/server");
|
||
|
|
||
|
server.get("/", (req, res) => {
|
||
|
res.json({
|
||
|
message: `API server for Dijkstra. :)`,
|
||
|
documentation: `Coming`
|
||
|
});
|
||
|
});
|
||
|
|
||
|
const PORT = process.env.PORT || 4000;
|
||
|
|
||
|
server.listen(PORT, () => {
|
||
|
console.log(`Listening on port ${PORT}...`);
|
||
|
});
|