raul pushed to main at raul/autouser 2024-12-16 10:15:38 +01:00
bb6dd68dd2 Nuclear refactoring
raul pushed to main at raul/drahoot 2024-12-13 09:31:27 +01:00
c4f7b2e282 Allow logging in by comparing hashed passwords
raul pushed to main at raul/drahoot 2024-12-12 14:31:56 +01:00
9259f5adba Re-organize codebase
raul pushed to main at raul/drahoot 2024-12-12 13:08:57 +01:00
f6c6bf28e7 Check if user exists before processing PUT/DELETE
raul pushed to main at raul/drahoot 2024-12-12 12:49:03 +01:00
6014213036 Allow modifying users via PUT
raul pushed to main at raul/drahoot 2024-12-12 11:42:44 +01:00
aebdb733a8 Add endpoint for health checking the server (ping)
raul pushed to main at raul/drahoot 2024-12-12 11:38:17 +01:00
304eb928eb Check if ID is valid number before processing
raul pushed to main at raul/drahoot 2024-12-11 18:11:21 +01:00
da654e571b Add DELETE endpoint for deleting users from db
raul pushed to main at raul/drahoot 2024-12-11 12:44:20 +01:00
115110a19b Merge students and teachers into same table
raul pushed to main at raul/drahoot 2024-12-11 12:37:01 +01:00
b673009635 Show whether request was successful or not via json
raul pushed to main at raul/bash-exercises 2024-12-11 09:50:29 +01:00
cc335ca6a5 Add calc.sh
raul pushed to main at raul/drahoot 2024-12-10 17:48:32 +01:00
e13e9e2019 Merge teachers and students into one table
raul pushed to main at raul/drahoot 2024-12-10 11:41:08 +01:00
1205572f1e Allow adding users to database
raul pushed to main at raul/drahoot 2024-12-10 10:23:24 +01:00
2093e60d4f Fix SQL injection in /api/user/:id endpoint
raul pushed to main at raul/drahoot 2024-12-09 17:59:02 +01:00
2d70d013ce Handle requests for non-existing users
raul pushed to main at raul/drahoot 2024-12-09 17:58:55 +01:00
8a7202ffd7 Add password field for students and teachers
raul pushed to main at raul/drahoot 2024-12-09 17:58:48 +01:00
2ab9b83b43 Allow querying a single user by ID
raul pushed to main at raul/drahoot 2024-12-09 10:43:48 +01:00
271d66216c Populate database
raul pushed to main at raul/drahoot 2024-12-09 10:43:37 +01:00
37444f6e9b Allow querying all students from database
raul pushed to main at raul/drahoot 2024-12-07 22:00:34 +01:00
699547584d Configure Gin and tinker with DB comms