Commit Graph

6 Commits

Author SHA1 Message Date
20b69c82da
fix(server/utils): prepend . to file extension checks 2023-10-12 22:58:10 -04:00
90b0256008
refactor(server/utils): create gridfs bucket for draft contents 2023-10-10 22:05:26 -04:00
dd74c8417a
fix(server/utils): fix mammoth and sanitize-html imports
(make it so that we're not importing a namespace instead of a default export)
2023-10-10 22:04:42 -04:00
bef6e79317
refactor(server/utils): export all story helpers from a single index.ts file
this is to remove the need for importing from several different files
2023-10-03 00:51:12 -04:00
c8bdcc0ec3
refactor(server/utils): create reusable utilities for various story-related functions
`bodyHandler` takes a request body and returns the chapter content as a string
`formChapterTransform` serializes a chapter-like object supplied in a request body to an actual
	proper chapter object
`getBucket` retrieves the story content gridfs bucket
`replaceGridFS` either creates or updates (deletes + reuploads) a gridfs file
2023-10-03 00:42:24 -04:00
ff4b94d913
feat(api): ✏️ add story api endpoints
(update/create/delete)
2023-10-02 15:44:55 -04:00