feat(global) better logging, add several fields for get_post api

- add sub_title, category, header_img to `get_post`
This commit is contained in:
lumither committed 2024-07-01 17:21:28 +08:00
1 parent 371f3cab39
commit d982bf0548
7 files changed
+194 -75

No files matched your search

+2 -2
View File
@@ -4,11 +4,11 @@ use std::num::ParseIntError;
use std::process::exit;
use std::str::FromStr;
use axum::Router;
use axum::routing::{get, post};
use axum::Router;
use dotenv::dotenv;
use sqlx::ConnectOptions;
use sqlx::postgres::{PgConnectOptions, PgPoolOptions};
use sqlx::ConnectOptions;
use tracing::{error, warn};
use crate::api::get::get_post::get_post;