From 1d98d943856c5ed3cfb9bb351a20493242472501 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Sun, 29 Jan 2023 19:41:44 -0500 Subject: dont log admin stuff --- src/api/admin.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/api') 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) -> 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, _: Log) -> Response { +async fn check(check: Option) -> Response { if check.is_none() { ResponseCode::Success.text("false") } else { -- cgit v1.2.3-freya