From 2d656ad02509d71b8793db5e75715f91f6e7b3fc Mon Sep 17 00:00:00 2001 From: Alex Pooley Date: Wed, 19 Mar 2025 05:27:35 +0000 Subject: feat: implement service status validation and refactor status route --- source/library/service_status.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 source/library/service_status.js (limited to 'source/library') diff --git a/source/library/service_status.js b/source/library/service_status.js new file mode 100644 index 0000000..96c02b2 --- /dev/null +++ b/source/library/service_status.js @@ -0,0 +1,24 @@ +export default (service) => { + const acceptedServices = [ + "dns", + "load-balancer", + "cdn", + "functions", + "mysql-cluster", + "mongodb-cluster", + "redis-cluster", + "elasticsearch-cluster", + "git-connector", + "job-runners", + "container-registry", + "kubernetes-cluster", + "bare-metal-servers", + "game-server-api", + "anti-ddos-protection", + "anti-cheat-api", + ]; + + if (acceptedServices.includes(service)) return true; + + return false; +}; -- cgit v1.2.3