From 757ccac0103541a34d040ef4812b2e7afb9f1f02 Mon Sep 17 00:00:00 2001
From: Freya Murphy <freya@freyacat.org>
Date: Fri, 20 Dec 2024 00:30:08 -0500
Subject: rename admin schema to xssbook

---
 src/db/rest/util/api_root.sql | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 src/db/rest/util/api_root.sql

(limited to 'src/db/rest/util/api_root.sql')

diff --git a/src/db/rest/util/api_root.sql b/src/db/rest/util/api_root.sql
new file mode 100644
index 0000000..7141a5f
--- /dev/null
+++ b/src/db/rest/util/api_root.sql
@@ -0,0 +1,19 @@
+
+CREATE FUNCTION FUNCTION _api.root()
+RETURNS JSON
+LANGUAGE plpgsql;
+AS $BODY$
+DECLARE
+openapi JSON = $$
+  {
+    "swagger": "2.0",
+    "info": {
+      "title": "XSSBook",
+      "description": "XSSBook Api Documentation"
+    }
+  }
+$$;
+BEGIN
+	RETURN openapi;
+END
+$BODY$;
-- 
cgit v1.2.3-freya

