Commit Graph

15 Commits

Author SHA1 Message Date
60e564781d
refactor(*): use more sane path aliases 2023-12-28 19:58:26 -05:00
3e5af47107
refactor(*): refactor tsconfig paths
looks/feels nicer
2023-12-20 17:23:31 -05:00
9ba432a8e0
fix(server/utils): add isIdNan helper function 2023-12-20 17:03:58 -05:00
0ebc25a1c8
refactor(server/utils): allow an IDraft to be passed to permission checker 2023-12-11 21:20:06 -05:00
f57fd2df84
chore(api/utils): remove unused import 2023-12-09 17:48:07 -05:00
7e300734d8
refactor(api/utils): switch to if...else if for each check 2023-12-09 17:32:24 -05:00
46c9a07b7d
refactor(api/utils): add isLoggedIn guard to story checks 2023-12-09 17:00:22 -05:00
22816477eb
refactor(server/utils): add chapter index parameter to storyCheck function 2023-12-06 22:11:41 -05:00
c27c81f39c
refactor(api/utils): update isAdmin check
make it also check that the user is logged in; eliminates need to type `isLoggedIn()` on the previous line
2023-12-06 21:37:54 -05:00
01d3b7f22b
feat(api): integrate co-author feature in api routes and helpers 2023-10-11 15:31:02 -04:00
1059b560e6
refactor(api/utils): replace repetitive "forbidden" and "unauthorized" literals with constant references 2023-10-03 00:50:00 -04:00
1338e87238
feat(api/utils): add isadmin check 2023-10-03 00:33:54 -04:00
09187fa5ac
feat(api): add captcha verify utility 2023-10-03 00:26:51 -04:00
2b0d478ca7
feat(api): add isLoggedIn utility function
for api routes which require authentication
2023-10-02 16:20:13 -04:00
ff4b94d913
feat(api): ✏️ add story api endpoints
(update/create/delete)
2023-10-02 15:44:55 -04:00