0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/api/canary
Naz 8d36ebeb3c Refactored Labels API add method back to promises
refs https://github.com/TryGhost/Team/issues/694

- Additional try/catch block needed in async/await implementation increased method complexity  and broke the complexity linting rule. This is a dirty way to fix the warning. Ideally the implementation should stay with async/await syntax and instead move the custom error handling logic into some different layer. For example we could introduce a separate "stage" in the API framework's "pipeline" where we'd catch and handle in a generic way all of the "unique" types of errors. It would make sense to have a generic handler because this same code happens in labels, member and few more places.
2021-09-03 20:33:28 +04:00
..
utils Updated members serializer to handle POJO 2021-08-26 15:28:55 +02:00
actions.js
authentication.js Fixed function complexity linting warning 2021-08-12 15:38:58 +04:00
authors-public.js
config.js
db.js Update cache invalidation on several routes 2021-07-07 18:12:51 +02:00
email-post.js Switched post routing to uuid instead of slug 2021-08-19 12:27:45 +04:00
email-preview.js Removed emailCardSegments labs flag (#13276) 2021-09-02 13:11:11 +01:00
email.js
identities.js Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
images.js
index.js Added eslint override for index.js false positives 2021-08-13 12:48:49 +01:00
integrations.js
invites.js
labels.js Refactored Labels API add method back to promises 2021-09-03 20:33:28 +04:00
mail.js
members.js Added dummy subscription to comped members 2021-08-26 15:28:55 +02:00
memberSigninUrls.js
membersStripeConnect.js
notifications.js
oembed.js Fixed function comlexity lint warning in oembeds 2021-08-23 10:36:18 +04:00
pages-public.js
pages.js Refactored posts service instantiation logic 2021-08-06 11:57:54 +04:00
posts-public.js
posts.js Refactored posts service instantiation logic 2021-08-06 11:57:54 +04:00
preview.js
products-public.js
products.js
redirects.js
roles.js
schedules.js
session.js
settings-public.js Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
settings.js Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
site.js
slack.js Added comments to all usages of lib/common/events 2021-07-07 16:02:44 +01:00
slugs.js Update cache invalidation on several routes 2021-07-07 18:12:51 +02:00
snippets.js Removed use of i18n in snippets controllers 2021-07-19 11:08:55 +01:00
tags-public.js
tags.js
themes.js Added comments to all usages of lib/common/events 2021-07-07 16:02:44 +01:00
users.js Update cache invalidation on several routes 2021-07-07 18:12:51 +02:00
webhooks.js