diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-09-04 17:03:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-04 17:03:53 +0200 |
commit | f39cbe7d803245702885b308ab1cee4551aea9a1 (patch) | |
tree | 56d2e5dbe6242bb64b03ba5028b8bac39ea0c7ed /src/internal-server/start | |
parent | Use namespaces when pulling docker base images since this is reqd for podman (diff) | |
download | ferdium-app-f39cbe7d803245702885b308ab1cee4551aea9a1.tar.gz ferdium-app-f39cbe7d803245702885b308ab1cee4551aea9a1.tar.zst ferdium-app-f39cbe7d803245702885b308ab1cee4551aea9a1.zip |
chore: remove what's new functionality (#1864)
Diffstat (limited to 'src/internal-server/start')
-rw-r--r-- | src/internal-server/start/routes.js | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/internal-server/start/routes.js b/src/internal-server/start/routes.js index b32b094ee..e75380ccd 100644 --- a/src/internal-server/start/routes.js +++ b/src/internal-server/start/routes.js | |||
@@ -25,12 +25,12 @@ const OnlyAllowFerdi = async ({ request, response }, next) => { | |||
25 | }; | 25 | }; |
26 | 26 | ||
27 | // Health: Returning if all systems function correctly | 27 | // Health: Returning if all systems function correctly |
28 | Route.get('health', ({ | 28 | Route.get('health', ({ response }) => |
29 | response, | 29 | response.send({ |
30 | }) => response.send({ | 30 | api: 'success', |
31 | api: 'success', | 31 | db: 'success', |
32 | db: 'success', | 32 | }), |
33 | })).middleware(OnlyAllowFerdi); | 33 | ).middleware(OnlyAllowFerdi); |
34 | 34 | ||
35 | // API is grouped under '/v1/' route | 35 | // API is grouped under '/v1/' route |
36 | Route.group(() => { | 36 | Route.group(() => { |
@@ -67,8 +67,9 @@ Route.group(() => { | |||
67 | Route.get('features/:mode?', 'StaticController.features'); | 67 | Route.get('features/:mode?', 'StaticController.features'); |
68 | Route.get('services', 'StaticController.emptyArray'); | 68 | Route.get('services', 'StaticController.emptyArray'); |
69 | Route.get('news', 'StaticController.emptyArray'); | 69 | Route.get('news', 'StaticController.emptyArray'); |
70 | Route.get('announcements/:version', 'StaticController.announcement'); | 70 | }) |
71 | }).prefix(API_VERSION).middleware(OnlyAllowFerdi); | 71 | .prefix(API_VERSION) |
72 | .middleware(OnlyAllowFerdi); | ||
72 | 73 | ||
73 | Route.group(() => { | 74 | Route.group(() => { |
74 | Route.get('icon/:id', 'ServiceController.icon'); | 75 | Route.get('icon/:id', 'ServiceController.icon'); |