Commit graph

39 commits

Author SHA1 Message Date
Francois G
14905a489a Add route for groups leaderboard 2023-04-08 17:33:19 +02:00
jeffcheasey88
9c98ca573a Create Group 2023-04-03 23:55:41 +02:00
Francois G
241c55abe0 Take new groups table into account on register player 2023-03-29 10:13:39 +02:00
jeffcheasey88
05ff24de32 Add GroupList route & Refractor DatabaseQuery 2023-03-27 16:30:01 +02:00
Francois G
6442ebdf19 Manage group as Object and no more String for leaderboard and playerDetails 2023-03-20 15:16:11 +01:00
Francois G
71c7e4e02c Return all badge info in player details route 2023-03-19 20:19:36 +01:00
Francois G
2d6b5c9005 Fix leaderboard calculation and add a ranking to player in details and leaderboard 2023-03-19 15:16:05 +01:00
Francois G
e983ab5445 make school group always first in json player 2023-03-19 10:42:55 +01:00
Francois G
2bb0328206 add tags support 2023-03-17 22:44:20 +01:00
Francois G
d74013a13a Solve compatibility problem with new DB schema. To test use pac_test instead of pc in config.txt 2023-03-17 14:33:12 +01:00
jeffcheasey88
d3c9ad22e5 Parser & Fix puzzle's origin from db 2023-03-14 11:07:49 +01:00
Francois G
69acf0966e Add depend field on PuzzleElement response if puzzle is nextPart from another 2023-03-10 12:11:41 +01:00
Francois G
61f6046659 add badge route 2023-03-10 11:15:54 +01:00
Francois G
1c951e8581 Merge branch 'addRoutes' of github.com:Peer-at-Code/peer-at-code-backend into addRoutes 2023-03-10 11:08:23 +01:00
Francois G
7bc013bb46 Temp to get Xavier changes 2023-03-10 11:06:07 +01:00
jeffcheasey88
124eea7a5c Fix avatar 2023-03-10 11:01:23 +01:00
Francois G
81d2f6feb2 Add playerDetails route 2023-03-09 22:24:36 +01:00
jeffcheasey88
1eafa7e972 Fix leaderboard compare & add config for token expiration (in minutes) & advance on parser & Add Headers 2023-02-27 13:13:15 +01:00
jeffcheasey88
0f9fc996f1 Fix non-loggin request headers & register id key 2023-02-26 19:57:06 +01:00
Francois G
b5db4328f2 Add leaderboard route 2023-02-25 21:19:58 +01:00
Francois G
4b5d21345c Refactor spaghetti code I wrote + save source code in file system instead than in db 2023-02-25 19:40:16 +01:00
jeffcheasey88
64a88f7282 JWT refractor 2023-02-24 00:08:17 +01:00
jeffcheasey88
688ff3cedd Merge remote-tracking branch 'origin/getPuzzleResponse' 2023-02-23 16:11:19 +01:00
Yannick Bour
fd66010226 jwt init 2023-02-23 16:07:47 +01:00
Francois G
67f6d48b85 Add route for puzzle response and beta puzzle score in response 2023-02-23 15:53:55 +01:00
jeffcheasey88
c2257beacb Get Score Route, wait for JWT & User 2023-02-23 14:32:15 +01:00
jeffcheasey88
48727370d7 Parser v0 & hide void 2023-02-23 13:51:28 +01:00
jeffcheasey88
ee602af486 Fixing Jules problems again & Ensure sql connection 2023-02-18 10:42:10 +01:00
jeffcheasey88
c953971ef3 Fix password hash 2023-02-15 23:20:42 +01:00
jeffcheasey88
4993cc33ee Fixing Jules'problem 2023-02-15 15:46:13 +01:00
jeffcheasey88
987e2648c2 Merge branch 'routes' 2023-02-15 15:38:17 +01:00
TheNagaki
1907173db5 Updated /register route with the new field in the database, updated DatabaseRepo for the same reason 2023-02-14 23:34:13 +01:00
TheNagaki
209b0eeeb4 Added the /login and /register routes (part where I actually submit the database requests) 2023-02-14 23:21:26 +01:00
TheNagaki
bbc752500a Added the /login and /register routes 2023-02-14 23:16:22 +01:00
jeffcheasey88
e794a93bee out UTF-8 & Update Puzzle Model 2023-02-14 15:00:30 +01:00
jeffcheasey88
a793a0cb44 Refractor for Database elements 2023-02-10 19:56:43 +01:00
jeffcheasey88
3693352e92 Register merged routes in Main 2023-02-10 09:40:22 +01:00
TheNagaki
80563cd86e Added ChapterElement and ChapterList as routes to respectively get a chapter by id and all the chapters.
Removed DatabaseQueries class and added DatabaseRepo to contain all the database queries; Edited PuzzleElement to remove all database-related code.
2023-02-09 22:42:33 +01:00
TheNagaki
79da7cb80c Implemented a route to get a single Puzzle (through the PuzzleElement class) and added the DatabaseQueries class (containing all the different SQL queries used). 2023-02-09 20:45:42 +01:00