Removing admin middleware applying to everything.
This commit is contained in:
parent
db3497c83a
commit
c2cd365e76
|
@ -77,8 +77,6 @@ function buildConfigGetValidation() {
|
||||||
}).unknown(true).required())
|
}).unknown(true).required())
|
||||||
}
|
}
|
||||||
|
|
||||||
router.use(adminOnly)
|
|
||||||
|
|
||||||
router
|
router
|
||||||
.post("/api/admin/configs", buildConfigSaveValidation(), controller.save)
|
.post("/api/admin/configs", buildConfigSaveValidation(), controller.save)
|
||||||
.delete("/api/admin/configs/:id", controller.destroy)
|
.delete("/api/admin/configs/:id", controller.destroy)
|
||||||
|
|
Loading…
Reference in New Issue