summary refs log tree commit diff
path: root/api/src
diff options
context:
space:
mode:
authorErkin Alp Güney <erkinalp9035@gmail.com>2022-04-07 23:13:43 +0300
committerGitHub <noreply@github.com>2022-04-07 23:13:43 +0300
commit7dc105ce89dd56773c44b0f15fa4bef6825da105 (patch)
tree3302df1a9ef5a5020d2e4cc033f707a55399a739 /api/src
parentwith public read receipts explicitly stored, no need to store manual flag of ... (diff)
downloadserver-7dc105ce89dd56773c44b0f15fa4bef6825da105.tar.xz
scheduled maintenances
Diffstat (limited to 'api/src')
-rw-r--r--api/src/routes/scheduled-maintenances/upcoming_json.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/api/src/routes/scheduled-maintenances/upcoming_json.ts b/api/src/routes/scheduled-maintenances/upcoming_json.ts
new file mode 100644
index 00000000..83092e44
--- /dev/null
+++ b/api/src/routes/scheduled-maintenances/upcoming_json.ts
@@ -0,0 +1,12 @@
+import { Router, Request, Response } from "express";
+import { route } from "@fosscord/api";
+const router = Router();
+
+router.get("/scheduled-maintenances/upcoming.json",route({}), async (req: Request, res: Response) => {
+	res.json({
+  "page": {},
+  "scheduled_maintenances": {}
+  });
+});
+
+export default router;