Commit Graph

19 Commits

Author SHA1 Message Date
8f45dbe563
style(*): edit indents 2023-12-29 20:53:29 -05:00
c8e84c909e
style(*): cleanup unused imports 2023-12-29 20:11:07 -05:00
1447960b1a
refactor(db/models): update populatedDoc types
- remove `& Document` qualifier
- cast `T | number` to T with the `as` keyword
2023-12-29 19:06:55 -05:00
922807ba6a
refactor(server/utils): make paths and imports more concise and correct 2023-12-29 16:34:00 -05:00
18f11f7ca7
refactor(api): check if coAuthor form field is an empty string
if it is, set coAuthor in document to null, otherwise, set it to the provided value
2023-12-28 19:58:54 -05:00
3e5af47107
refactor(*): refactor tsconfig paths
looks/feels nicer
2023-12-20 17:23:31 -05:00
088232f750
refactor(api & server/utils): refactor imports of db helpers
create an index file which exports the functions we need in one accessible place
2023-12-11 21:29:46 -05:00
3bc828ad5e
fix(api): allow admins to access a hidden story's full contents 2023-12-09 16:58:35 -05:00
37e9bcc17c
fix(api): fix error not throwing on an illegal access of a full hidden story 2023-12-09 16:56:57 -05:00
22816477eb
refactor(server/utils): add chapter index parameter to storyCheck function 2023-12-06 22:11:41 -05:00
61c57e4161
refactor(api): pass chapter index to chapterTransformer in individual chaper get route 2023-12-01 17:54:30 -05:00
f1190af5df
refactor(api): add api route to retrieve full story information
with text
2023-10-11 16:39:11 -04:00
01d3b7f22b
feat(api): integrate co-author feature in api routes and helpers 2023-10-11 15:31:02 -04:00
b000c6734a
refactor(api): rename imports and refactor error messages 2023-10-03 01:24:06 -04:00
f0346ebdbd
feat(api): add an endpoint to retrieve the users who have favourited a specific story 2023-10-03 01:18:12 -04:00
6b5b01fdd6
refactor(api): change error messages to imported constant values 2023-10-03 01:17:21 -04:00
356cb5ea6b
feat(api): create review endpoints
create endpoints for adding+getting a single chapter's reviews
2023-10-02 21:43:24 -04:00
d056dac72b
refactor(api): update function calls 2023-10-02 15:46:56 -04:00
ff4b94d913
feat(api): ✏️ add story api endpoints
(update/create/delete)
2023-10-02 15:44:55 -04:00