Skip to content

Commit

Permalink
Remove middleware for getCategories
Browse files Browse the repository at this point in the history
  • Loading branch information
kohkaixun committed Nov 10, 2023
1 parent 84cb62c commit 5b1b2e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/question-backend/routes/categoryRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { updateCategory } from "../controller/updateCategory.js";

const router = express.Router();

router.get("/", [checkLogin], getCategories);
router.get("/", getCategories);
router.post("/", [checkLogin, checkAdmin], addCategory);
router.put("/:oldName", [checkLogin, checkAdmin], updateCategory);
router.delete("/:name", [checkLogin, checkAdmin], deleteCategory);
Expand Down

0 comments on commit 5b1b2e3

Please sign in to comment.