summaryrefslogtreecommitdiff
path: root/src/public
diff options
context:
space:
mode:
Diffstat (limited to 'src/public')
-rw-r--r--src/public/pages.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/public/pages.rs b/src/public/pages.rs
index 1614d81..196a441 100644
--- a/src/public/pages.rs
+++ b/src/public/pages.rs
@@ -48,6 +48,10 @@ async fn admin() -> Response {
super::serve("/admin.html").await
}
+async fn api() -> Response {
+ super::serve("/api.html").await
+}
+
async fn wordpress(_: Log) -> Response {
ResponseCode::ImATeapot.text("Hello i am a teapot owo")
}
@@ -62,4 +66,5 @@ pub fn router() -> Router {
.route("/console", get(console))
.route("/wp-admin", get(wordpress))
.route("/admin", get(admin))
+ .route("/docs", get(api))
}