lfglabs-dev / api.starknet.quest

starknet.quest rust backend
2 stars 17 forks source link

Replace admin auth macro by middleware #256

Closed Ugo-X closed 3 weeks ago

Ugo-X commented 4 weeks ago

Implement Authorization Middleware

Closes #245

Ugo-X commented 3 weeks ago

The middleware is still not implemented in all admin pages, and for the one where it is implemented, I get 404 errors (the route is not found), e.g.: /admin/tasks/custom/update. I suggest you to try your code to check everything is working before pushing. Here is a super cool tool to test requests (you can download the app or use it in the browser: https://httpie.io/

The route for this is /admin/tasks/custom/update_custom ser