Commit graph

17 commits

Author SHA1 Message Date
9a930c8d99 Add admin mode
The API Controller checks if the user is logged in and whether they are an admin, and checks for the X-Admin-Mode header
2023-08-24 21:56:41 -07:00
06f8d28874
February 2023 Update (#48) 2023-02-04 23:46:12 -08:00
adbb5b6c7d Disallow adding arbitrary weapons to Extra slots 2022-12-25 00:23:27 -08:00
574d8e0b3e Normalize constants in ApiController 2022-12-23 19:08:36 -08:00
041f8ee189 Fix errors with error handling 2022-12-22 18:12:47 -08:00
c0be03dcb6 Finish migrating ApiController error methods 2022-12-21 23:28:54 -08:00
290099e2f4 Refactor PartiesController for blueprinter
* Refactored and tried to simplify methods in PartiesController
* Implemented new error render methods in ApiController
* Removed parties/[weapons, summons, characters] routes
2022-12-21 15:34:54 -08:00
c1716c1e4f Run RuboCop on everything
yolo
2022-12-21 00:22:47 -08:00
a08421722f Add GranblueError and move app errors to extend it 2022-12-03 18:21:01 -08:00
4ee90f6c09 Add new errors and fix handling in ApiController 2022-12-03 11:43:56 -08:00
f6613d6e91 Add TooManySkillsOfTypeError 2022-12-02 20:45:46 -08:00
c0bdb47d43 Add scoped search for job skills 2022-11-30 02:03:28 -08:00
6756c24896 Remove duplicate current_user method 2022-03-21 03:53:34 -07:00
438fc7294d Add custom errors 2022-02-27 19:03:04 -08:00
4e3c628c8d Update api_controller.rb 2020-09-26 10:51:17 -07:00
10cca8e4b0 Update api_controller.rb 2020-09-25 10:56:08 -07:00
071f6b4664 Controllers should inherit from ApiController 2020-09-19 12:46:24 -07:00