14 Commits

Author SHA1 Message Date
daedalus
5752ccfc93 fix(controller): errors should not result in internal error 2023-11-14 19:55:55 -05:00
daedalus
430f90b992 refactor(slugController): internalise transform
Resolves #108
2023-11-14 19:55:55 -05:00
daedalus
691e39feb0
fix(controller): use correct import for transformResponse (#109) 2023-09-28 20:18:25 -04:00
Max Starr
38292fedd3
fix: broken imports due to change in strapi (#99)
* refactor broken imports

* update package info

* update package name

* fix other broken import

* fix(pkg.json): revert changes

* fix(santizeOutput): update import

* fix: namespace error imports

---------

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
2023-07-07 16:46:37 -04:00
daedalus
78ca3f6d5d refactor(bootstrap): move build and lifecycle setup to separate files
refactor(settingsService): add clear distinction between model types
2022-10-24 21:10:35 -04:00
daedalus
27b69ff063 refactor(getPluginService): remove unnecessary param for strapi 2022-10-24 21:10:35 -04:00
daedalus
906188608c
fix(slugController): incorrect relation response (#42)
Resolves #40
2022-03-15 20:04:45 -04:00
daedalus
3fb1b0b9b5
fix(findSlug utility): respect foreign model permissions (#33)
* fix(slugController): respect foreign model access permissions (#32)

* feat(utils): add `sanitizeOutput`

* feat(utils): add `isValidFindSlugParams`

* feat(utils): add `hasRequiredModelsScope`

* refactor(slugController): utilise util functions

* fix(Query.findSlug): respect model access permissions

refactor(Query.findSlug): utilise utils functions

Co-authored-by: Jean-Sébastien Herbaux <jean-sebastien.herbaux@epitech.eu>
2022-03-02 21:07:46 -05:00
daedalus
f27ce29e8e
fix(slugController): sanitize response (#19) 2022-02-24 22:54:08 -05:00
daedalus
2afe7117a2
refactor(transformResponse): import from strapi (#18) 2022-02-24 22:20:17 -05:00
daedalus
14cc4c7874
fix(findSlug REST): incorrect response format (#13) 2022-02-23 00:00:33 -05:00
daedalus
70e1151104
fix (findSlug query): default live publication state (#9)
* fix(findSlug query): only return published records by default

* refactor(settingsService): add build util

* refactor(slugService): remove unnecessary validation
2022-02-22 22:52:38 -05:00
daedalus
1ccfbba2f7
refactor(slug-controller): add note that model names are case sensitive in error message (#5)
chore(slug-controller): `pah` should be `path`
2022-02-18 00:04:47 -05:00
daedalus
9c92844024 feat: init commit 2022-02-17 02:09:21 -05:00