summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
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 {