Skip to content

Commit

Permalink
renamed template/server/src as template/server/app
Browse files Browse the repository at this point in the history
  • Loading branch information
rocambille committed Feb 1, 2024
1 parent ee36e83 commit 8431f02
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions template/server/src/app.js → template/server/app/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ app.use(

/* ************************************************************************* */

// Import the API routes from the router module
const apiRouter = require("./api/router");
// Import the API routes
const apiRouter = require("./routers/api/router");

// Mount the API routes under the "/api" endpoint
app.use("/api", apiRouter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const router = express.Router();
/* ************************************************************************* */

// Import item-related actions
const { browse, read, add } = require("../../controllers/itemActions");
const { browse, read, add } = require("../../../controllers/itemActions");

// Route to get a list of items
router.get("/", browse);
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion template/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require("dotenv").config();

// Import the Express application from src/app.js
const app = require("./src/app");
const app = require("./app/config");

// Get the port from the environment variables
const port = process.env.APP_PORT;
Expand Down

0 comments on commit 8431f02

Please sign in to comment.