Commit Graph

13 Commits

Author SHA1 Message Date
raul b673009635
Show whether request was successful or not via json 2024-12-11 12:36:02 +01:00
raul e13e9e2019
Merge teachers and students into one table
Using the AccountType attribute to store the user type
2024-12-10 13:52:59 +01:00
raul 1205572f1e
Allow adding users to database 2024-12-10 11:36:25 +01:00
raul 2093e60d4f
Fix SQL injection in /api/user/:id endpoint 2024-12-10 10:22:06 +01:00
raul 2d70d013ce
Handle requests for non-existing users 2024-12-09 17:58:26 +01:00
raul 8a7202ffd7
Add password field for students and teachers 2024-12-09 17:58:00 +01:00
raul 2ab9b83b43
Allow querying a single user by ID 2024-12-09 17:21:03 +01:00
raul 37444f6e9b
Allow querying all students from database 2024-12-09 10:42:31 +01:00
raul 699547584d
Configure Gin and tinker with DB comms
Added a handler for adding new users to Postgres through a POST
request
2024-12-06 13:55:01 +01:00
raul 788e8b46a9
Add structs.go 2024-12-06 13:35:43 +01:00
raul b0ad56d82b
Config file usage cleanup 2024-12-06 10:39:12 +01:00
raul 87928b8bca
Add webserver files 2024-12-06 10:38:37 +01:00
raul 7bff94d3b2
Add cobra template files 2024-12-06 08:54:21 +01:00