aboutsummaryrefslogtreecommitdiffstats
path: root/src/internal-server/start
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-09-04 17:03:53 +0200
committerLibravatar GitHub <noreply@github.com>2021-09-04 17:03:53 +0200
commitf39cbe7d803245702885b308ab1cee4551aea9a1 (patch)
tree56d2e5dbe6242bb64b03ba5028b8bac39ea0c7ed /src/internal-server/start
parentUse namespaces when pulling docker base images since this is reqd for podman (diff)
downloadferdium-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.js17
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
28Route.get('health', ({ 28Route.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
36Route.group(() => { 36Route.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
73Route.group(() => { 74Route.group(() => {
74 Route.get('icon/:id', 'ServiceController.icon'); 75 Route.get('icon/:id', 'ServiceController.icon');