commit
This commit is contained in:
parent
4825be45e1
commit
0bac40a72f
8 changed files with 256 additions and 16 deletions
3
index.js
3
index.js
|
@ -4,6 +4,7 @@ const path = require("path");
|
|||
const config = require("./config");
|
||||
const cookieParser = require("cookie-parser");
|
||||
const cors = require("cors");
|
||||
require("dotenv").config();
|
||||
|
||||
const app = express();
|
||||
const port = config.port || 3000;
|
||||
|
@ -29,5 +30,5 @@ function loadRoutes(folderName) {
|
|||
loadRoutes("api");
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`Server listening on port ${port}`);
|
||||
console.log(`Server listening on http://localhost:${port}/`);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue