Add public work read model and smooth puzzle transitions
This commit is contained in:
16
server-rs/crates/api-server/src/modules/public_work.rs
Normal file
16
server-rs/crates/api-server/src/modules/public_work.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
use axum::{Router, routing::get};
|
||||
|
||||
use crate::{
|
||||
public_work::{get_public_work_detail, list_public_works},
|
||||
state::AppState,
|
||||
};
|
||||
|
||||
pub fn router(state: AppState) -> Router<AppState> {
|
||||
Router::new()
|
||||
.route("/api/public-works", get(list_public_works))
|
||||
.route(
|
||||
"/api/public-works/{public_work_code}",
|
||||
get(get_public_work_detail),
|
||||
)
|
||||
.with_state(state)
|
||||
}
|
||||
Reference in New Issue
Block a user