Deleted useless files such as backend, node_modules and package-lock. Modified readme.
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
const express = require("express");
|
||||
const {
|
||||
createFarm,
|
||||
getUserFarms,
|
||||
getFarmById,
|
||||
updateFarm,
|
||||
deleteFarm,
|
||||
} = require("../Controllers/farm.controller.js");
|
||||
const { checkAuthenticated } = require("../Middlewares/authentication.js");
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
router.post("/", checkAuthenticated, createFarm); // Create a new farm
|
||||
router.get("/", checkAuthenticated, getUserFarms); // Get all farms
|
||||
router.get("/:farmId", checkAuthenticated, getFarmById); // Get a farm by ID
|
||||
router.put("/:farmId", checkAuthenticated, updateFarm); // Update a farm
|
||||
router.delete("/:farmId", checkAuthenticated, deleteFarm); // Delete a farm
|
||||
|
||||
module.exports = router;
|
||||
Reference in New Issue
Block a user