Rocket: Use fairings for routes of sub-files

Instead of adding all routes manually in the Launch function for Rocket,
implement fairings for all the different files that adds the routing to
the rocket in a self-contained manner.
This commit is contained in:
trotFunky 2024-07-27 21:22:34 +01:00
parent 120472354c
commit 222acbb4f8
6 changed files with 28 additions and 10 deletions

View file

@ -16,8 +16,9 @@ A list of things that could be implemented/added to the application, some of the
- [ ] Move the database queries to their own functions
- [ ] Cache those results
- [ ] Centralize Markdown parsing ?
- [ ] Use fairings for the different elements ?
- [x] Use fairings for the different elements
- [ ] Use guards for User calls ?
- [ ] Use SQLite Row ID for User IDs rather than regular IDs, for randomness ?
# Dependencies