diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2023-02-02 16:15:19 -0500 |
---|---|---|
committer | Tyler Murphy <tylermurphy534@gmail.com> | 2023-02-02 16:15:19 -0500 |
commit | ecb815043a2dc4cb453f620eb30598223de74d9a (patch) | |
tree | 50a5bccc85056389fca1f8df79ab151e0259bc77 /src/public | |
parent | dont show load posts button if no posts (diff) | |
download | xssbook-ecb815043a2dc4cb453f620eb30598223de74d9a.tar.gz xssbook-ecb815043a2dc4cb453f620eb30598223de74d9a.tar.bz2 xssbook-ecb815043a2dc4cb453f620eb30598223de74d9a.zip |
api docs
Diffstat (limited to 'src/public')
-rw-r--r-- | src/public/pages.rs | 5 |
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)) } |