feat(api) add refresh.rs

This commit is contained in:
lumither committed 2024-05-03 02:17:11 +08:00
1 parent dce7a28b89
commit 2d42e933c8
10 files changed
+127 -9

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
use axum::extract::{Path, State};
use axum::Json;
use serde_json::Value;
use sqlx::PgPool;
pub async fn get_post(
State(_db_connection): State<PgPool>,
Path(post_id): Path<String>,
) -> Result<Json<Value>, Json<Value>> {
dbg!(&post_id);
todo!()
}