© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Imran Khan
Software Developer
Hi Anthony,
That's the ideal way of having private routes. Usually in middleware. This is what I do usually.
router.post("/create", [auth, isAdmin], controllers.users.create);