fehho / myDiRT-api

Scorpion Camp winter 2022 devjam participant
0 stars 0 forks source link

[Improvement] Put authentication route under endpoints needing a user token #4

Closed fehho closed 1 year ago

fehho commented 1 year ago

Current behavior is to run a subroutine inside every endpoint needing authentication, adding noise and gives the potential to forget/remove authentication from a protected endpoint.

fehho commented 1 year ago

https://metacpan.org/pod/Mojolicious::Plugin::OpenAPI::Security