feat: cms event

This commit is contained in:
0x6d696b7566616e
2025-05-26 14:11:17 +07:00
parent 36c12110c2
commit 89cc631fb0
18 changed files with 711 additions and 2 deletions
+17
View File
@@ -0,0 +1,17 @@
pub mod events_dto;
pub mod events_schema;
pub mod events_repository;
pub mod events_service;
pub mod events_controller;
use axum::{routing::{delete, get, patch, post}, Router};
pub use events_controller::*;
pub fn events_public_routes() -> Router {
Router::new()
.route("/events", get(events_controller::get_event_list))
.route("/events/detail/{id}", get(events_controller::get_event_by_id))
.route("/events/create", post(events_controller::post_create_event))
.route("/events/update/{id}", patch(events_controller::patch_update_event))
.route("/events/delete/{id}", delete(events_controller::delete_event))
}