Deleted useless folders such as backend, node_modules, files such as package-lock. Also, modified readme.

This commit is contained in:
K
2025-02-23 09:02:28 +05:30
parent 54c7dbc940
commit 7dd344f722
406 changed files with 1 additions and 119215 deletions
-19
View File
@@ -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;