feat: initialize multi-platform Family Organizer application with Flutter frontend and Node.js backend services

This commit is contained in:
Van Leemput Dayron
2025-12-08 21:29:57 +01:00
parent d262cc4987
commit 378d6fb5d5
158 changed files with 9396 additions and 0 deletions

8
backend/dist/routes/auth.js vendored Normal file
View File

@@ -0,0 +1,8 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = require("express");
const AuthController_1 = require("../controller/AuthController");
const router = (0, express_1.Router)();
router.post("/login", AuthController_1.AuthController.login);
router.post("/register", AuthController_1.AuthController.register);
exports.default = router;

12
backend/dist/routes/index.js vendored Normal file
View File

@@ -0,0 +1,12 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = require("express");
const auth_1 = __importDefault(require("./auth"));
const shopping_1 = __importDefault(require("./shopping"));
const router = (0, express_1.Router)();
router.use("/auth", auth_1.default);
router.use("/lists", shopping_1.default);
exports.default = router;

17
backend/dist/routes/shopping.js vendored Normal file
View File

@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = require("express");
const ShoppingListController_1 = require("../controller/ShoppingListController");
const ShoppingItemController_1 = require("../controller/ShoppingItemController");
const checkJwt_1 = require("../middleware/checkJwt");
const router = (0, express_1.Router)();
// Lists
router.get("/", [checkJwt_1.checkJwt], ShoppingListController_1.ShoppingListController.listAll);
router.get("/:id", [checkJwt_1.checkJwt], ShoppingListController_1.ShoppingListController.getOneById);
router.post("/", [checkJwt_1.checkJwt], ShoppingListController_1.ShoppingListController.new);
router.delete("/:id", [checkJwt_1.checkJwt], ShoppingListController_1.ShoppingListController.delete);
// Items
router.post("/:listId/items", [checkJwt_1.checkJwt], ShoppingItemController_1.ShoppingItemController.newItem);
router.put("/items/:id", [checkJwt_1.checkJwt], ShoppingItemController_1.ShoppingItemController.editItem);
router.delete("/items/:id", [checkJwt_1.checkJwt], ShoppingItemController_1.ShoppingItemController.deleteItem);
exports.default = router;