Remove CSRF from page, post, category delete routes (#56)

- Chapter delete swap target needs work
This commit is contained in:
2025-07-04 22:24:32 -04:00
parent 87fbb1a8c7
commit d1840f63e5
5 changed files with 50 additions and 58 deletions
+1 -1
View File
@@ -218,7 +218,7 @@ let router : HttpHandler = choose [
])
route "/upload/save" >=> Upload.save
]
DELETE >=> validateCsrf >=> choose [
DELETE >=> choose [
routef "/category/%s" Admin.Category.delete
subRoute "/page" (choose [
routef "/%s" Page.delete