Commit Graph

32 Commits

Author SHA1 Message Date
Alexis
ce9018f65e - Added some school methods but will need to refactor the model calls 2020-06-06 23:35:11 +02:00
Alexis
3dbb95ab4d finished the delete ORM method for spell 2020-06-06 17:07:03 +02:00
Alexis
8932736e6a jesus fucking christ finished the update spell thing why are apis like this 2020-06-06 16:38:08 +02:00
Alexis
369d53d509 - Did the unthinkable and actually achieved Peak ORM 2020-06-06 00:17:01 +02:00
Alexis
cabbf68f7a - Worked on spell things 2020-06-02 17:19:54 +02:00
Alexis
1280d6ee1f - Added getAll route for spells with bookshelf 2020-05-27 21:26:35 +02:00
Alexis
af7e6ff701 - [API] Added getSchool, getSchools, and addSchools 2020-05-24 23:51:17 +02:00
Alexis
df7ee9add4 - [API] Fixed the updateSpell to wait for queries 2020-05-24 12:12:15 +02:00
Alexis
08b0b94bd8 - [API] Added User routes (need polishing because it parses and sends sensitive data) 2020-05-23 21:48:27 +02:00
Alexis
473f8f44c1 - [API] Finished White Box tests, passed all of them, spell API considered finished 2020-05-23 01:02:45 +02:00
Alexis
acd380e084 - [API] Fixed a never ending loop on post and put methods for spells 2020-05-22 22:21:25 +02:00
Alexis
5ce6250f00 - [API] Fixed an always pending promise in update spells 2020-05-21 22:50:57 +02:00
Alexis
65acd9b7e9 - [API] Fixed more bugs thanks to unit testing gj unit testing I'm so proud of you 2020-05-21 22:48:05 +02:00
Alexis
5d466ce4d8 - [API] Fixed the loop of getSpells() 2020-05-21 11:53:55 +02:00
Alexis
983af14edc - Added and finished most spell methods (need tests soon) 2020-05-21 01:40:55 +02:00
Alexis
63c7dc5d09 - Added update methods for spell API 2020-05-19 23:12:28 +02:00
Alexis
b0bd343018 - Removed some useless function declaration on the spells methods, everything is in promises now 2020-05-19 21:26:43 +02:00
Alexis
936d09be77 + Added POST method for spells API 2020-05-16 22:52:43 +02:00
Alexis
c140aa58db - Refactored some error handling on schools router 2020-05-16 22:52:30 +02:00
Alexis
8749020c73 - Refactored the spell id check 2020-05-16 21:32:27 +02:00
Alexis
7195b4359b + Error handler and refactoring of the http methods 2020-05-16 21:30:35 +02:00
Alexis
cf0a50efa3 - Added escape methods to queries for spells and schools 2020-05-16 16:46:44 +02:00
Alexis
8468fe235a + Started POST route for spells (w/ validation) and applied changes 2020-05-16 14:59:10 +02:00
Alexis
bf8205c679 + Added GET one and GET all for schools 2020-05-16 14:58:40 +02:00
Alexis
449c07f013 - Implemented security and headers modules for API 2020-05-15 20:31:39 +02:00
Alexis
a408a9cdd3 + Added cleaner method of getting id (the other method was ew tbh) 2020-05-14 23:48:19 +02:00
Alexis
0766487309 - Fixed SQL injection ""issue""
And various code cleaning things for spell route
2020-05-14 21:02:55 +02:00
Alexis
042c205ce4 - [API] Segregated API files, Implemented spells-list, component that calls the API 2020-04-06 16:39:55 +02:00
Alexis
37f4913d3e - [All] Finished API call for spells and various bug fixes 2020-04-01 19:01:03 +02:00
Alexis
27a1113bd2 - [API] Finished the request to get all spells (associated tables for instance) 2020-03-28 20:45:44 +01:00
Alexis
481ed7507f - [DB] Formatted test inserts in a single lines 2020-03-26 09:25:27 +01:00
Alexis
144eb31392 + Added [router] and cleaned some code 2020-03-23 18:35:13 +01:00