Refactor the API, then give the user a landing page that shows their profile #286

Merged
savanni merged 23 commits from visions-refactor-api into main 2025-01-03 22:00:02 +00:00

23 Commits

Author SHA1 Message Date
f59c3544b4 Set up the landing page, which shows the user their profile 2025-01-03 16:50:56 -05:00
208083d39e Authenticate the user and populate AppState with the stored session ID 2025-01-03 16:19:43 -05:00
08462388ea Move the assertNever utility to a utilities file 2025-01-03 11:59:33 -05:00
dc8cb834e0 Handle all applications errors in one location 2025-01-02 22:34:10 -05:00
4dc7a50000 Get games that the user is GMing in the user profile 2025-01-02 14:45:06 -05:00
5bb9f00a0d Extract the user management handlers 2025-01-02 13:57:20 -05:00
f6eb942371 Add the ability to create a game 2025-01-02 11:57:17 -05:00
792437af44 Add the ability for a user to set their password 2025-01-01 00:19:12 -05:00
d9f1efb8d3 Add the ability to create users and to get profiles 2024-12-31 23:47:40 -05:00
b2a7577c9d Make handlers asynchronous 2024-12-31 16:34:59 -05:00
82e41d711b Extract authentication into a wrapper function 2024-12-31 14:17:15 -05:00
822dfe2a13 authenticate an endpoint for getting the user profile 2024-12-31 14:09:21 -05:00
a0f1a0b81c Test user authentication 2024-12-31 12:56:05 -05:00
a33b94e5b3 Resolve many warnings 2024-12-31 12:12:24 -05:00
a18cdb0710 Create a test for the healthcheck endpoint 2024-12-31 01:12:26 -05:00
c31870367f Switch to Axum and implement the password check 2024-12-30 21:05:31 -05:00
e4c5ce0236 Set up a bit of code that rejects requests that have no authorization header 2024-12-29 23:39:43 -05:00
085a82776e Write a macro that eases communication between DbConn and DiskDb 2024-12-27 14:59:24 -05:00
2b1a0b99f8 Lots of linting and refactoring 2024-12-27 14:29:07 -05:00
fb34d0d965 Move the database into a more complex sub-module 2024-12-27 14:05:41 -05:00
d5f4b7cfa5 Add session creation and lookup 2024-12-27 14:02:43 -05:00
1d400ce38b Start wrapping routes into standalone functions 2024-12-24 14:37:37 -05:00
e62ff9aa7a Check username and password 2024-12-22 09:17:00 -05:00