summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2023-01-29 19:41:44 -0500
committerTyler Murphy <tylermurphy534@gmail.com>2023-01-29 19:41:44 -0500
commit1d98d943856c5ed3cfb9bb351a20493242472501 (patch)
tree61b84eee13024df39f30c309e8a8f1ce6474eb8c /src/api
parentrefactor (diff)
downloadxssbook-1d98d943856c5ed3cfb9bb351a20493242472501.tar.gz
xssbook-1d98d943856c5ed3cfb9bb351a20493242472501.tar.bz2
xssbook-1d98d943856c5ed3cfb9bb351a20493242472501.zip
dont log admin stuff
Diffstat (limited to 'src/api')
-rw-r--r--src/api/admin.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/api/admin.rs b/src/api/admin.rs
index 655e2e2..bda1ae2 100644
--- a/src/api/admin.rs
+++ b/src/api/admin.rs
@@ -7,7 +7,7 @@ use tower_cookies::{Cookie, Cookies};
use crate::{
admin, database,
types::{
- extract::{AdminUser, Check, CheckResult, Json, Log},
+ extract::{AdminUser, Check, CheckResult, Json},
http::ResponseCode,
},
};
@@ -59,19 +59,19 @@ async fn query(_: AdminUser, Json(body): Json<QueryRequest>) -> Response {
}
}
-async fn posts(_: AdminUser, _: Log) -> Response {
+async fn posts(_: AdminUser) -> Response {
admin::generate_posts()
}
-async fn users(_: AdminUser, _: Log) -> Response {
+async fn users(_: AdminUser) -> Response {
admin::generate_users()
}
-async fn sessions(_: AdminUser, _: Log) -> Response {
+async fn sessions(_: AdminUser) -> Response {
admin::generate_sessions()
}
-async fn check(check: Option<AdminUser>, _: Log) -> Response {
+async fn check(check: Option<AdminUser>) -> Response {
if check.is_none() {
ResponseCode::Success.text("false")
} else {