mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 10:26:21 +00:00
feat(blog::api) get_identifier.rs
This commit is contained in:
11 files changed
+208
-38
No files matched your search
@@ -4,7 +4,7 @@ use axum::{
|
||||
};
|
||||
use serde_json::{Value, json};
|
||||
|
||||
pub fn err_resp(code: StatusCode, err_msg: String) -> Response<String> {
|
||||
pub fn err_resp(code: StatusCode, err_msg: &str) -> Response<String> {
|
||||
let payload = json!({
|
||||
"status": "error",
|
||||
"data": {
|
||||
|
||||
Reference in new issue
Block a user