3 files changed, 19 insertions, 0 deletions
diff --git a/src/api/routes/index.js b/src/api/routes/index.js
new file mode 100644
index 0000000..c35303f
--- /dev/null
+++ b/src/api/routes/index.js
@@ -0,0 +1,2 @@
+export * from "./statusRoute.js";
+export * from "./indexRoute.js";
diff --git a/src/api/routes/indexRoute.js b/src/api/routes/indexRoute.js
new file mode 100644
index 0000000..3685893
--- /dev/null
+++ b/src/api/routes/indexRoute.js
@@ -0,0 +1,6 @@
+export const indexRoute = {
+ route: "/",
+ onGet(req, res) {
+ res.send("What art thou doing here???");
+ },
+};
diff --git a/src/api/routes/statusRoute.js b/src/api/routes/statusRoute.js
new file mode 100644
index 0000000..a829f19
--- /dev/null
+++ b/src/api/routes/statusRoute.js
@@ -0,0 +1,11 @@
+export const statusRoute = {
+ route: "/status",
+ onGet(req, res) {
+ const status = {
+ status: "ok",
+ timestamp: new Date().toISOString(),
+ };
+
+ res.status(200).json(status);
+ },
+};
|