forked from Furumi/furumi-web
Add guided metadata repair tool to admin
This commit is contained in:
1 parent
9ab27c921c
commit
8f7c0d231f
5 files changed
+1235
-32
No files matched your search
+2
-2
@@ -2461,7 +2461,7 @@ pub async fn merge_releases(
|
||||
.into_response()
|
||||
}
|
||||
|
||||
async fn require_admin_json(
|
||||
pub(super) async fn require_admin_json(
|
||||
session: &Session,
|
||||
db: &Database,
|
||||
) -> Result<AuthenticatedUser, cot::response::Response> {
|
||||
@@ -2474,7 +2474,7 @@ async fn require_admin_json(
|
||||
Ok(user)
|
||||
}
|
||||
|
||||
fn json_error(status: StatusCode, message: &str) -> cot::response::Response {
|
||||
pub(super) fn json_error(status: StatusCode, message: &str) -> cot::response::Response {
|
||||
let body = serde_json::json!({ "error": message });
|
||||
cot::http::Response::builder()
|
||||
.status(status)
|
||||
|
||||
Reference in new issue
Block a user