HuskieRobotics/SPOT

refactor authentication and demo-mode to use middleware

Open

#120 opened on Jun 18, 2024

 (3 comments) (0 reactions) (0 assignees)JavaScript (29 forks)auto 404
enhancementhelp wanted

Repository metrics

Stars
 (27 stars)
PR merge metrics
 (PR metrics pending)

Description

Currently, every admin and setup endpoint checks for authentication. It would be cleaner if authentication was checked once with a middleware approach and all endpoints wouldn't have to worry about it. Similarly, demo-mode is checked throughout admin and scouting endpoints and that could be done in a single place using middleware.

Contributor guide