raul
|
c4f7b2e282
|
Allow logging in by comparing hashed passwords
|
2024-12-13 09:30:55 +01:00 |
raul
|
9259f5adba
|
Re-organize codebase
|
2024-12-12 14:30:58 +01:00 |
raul
|
f6c6bf28e7
|
Check if user exists before processing PUT/DELETE
|
2024-12-12 12:56:01 +01:00 |
raul
|
6014213036
|
Allow modifying users via PUT
I finally finished the CRUD for the users! Only like, 4 more CRUDs to
go...
|
2024-12-12 12:34:54 +01:00 |
raul
|
aebdb733a8
|
Add endpoint for health checking the server (ping)
|
2024-12-12 11:29:46 +01:00 |
raul
|
304eb928eb
|
Check if ID is valid number before processing
|
2024-12-12 11:25:22 +01:00 |
raul
|
da654e571b
|
Add DELETE endpoint for deleting users from db
I also finished converting the rest of the server responses to JSON
|
2024-12-11 18:10:25 +01:00 |
raul
|
115110a19b
|
Merge students and teachers into same table
|
2024-12-11 12:43:57 +01:00 |
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
|
271d66216c
|
Populate database
|
2024-12-09 10:43:12 +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
|
4d5c5d9c93
|
Update config files
|
2024-12-06 13:52:41 +01:00 |
raul
|
7827761214
|
Remove db-data from repo
|
2024-12-06 13:51:42 +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
|
10b771bd82
|
Add sample-config
|
2024-12-06 09:51:59 +01:00 |
raul
|
65b234f7aa
|
Add PostgreSQL setup files
|
2024-12-06 09:03:49 +01:00 |
raul
|
7bff94d3b2
|
Add cobra template files
|
2024-12-06 08:54:21 +01:00 |
raul
|
ac9cb26f0f
|
Initial commit
|
2024-12-06 08:52:59 +01:00 |