Inital API - Heath Endpoint

This commit is contained in:
2024-02-24 17:41:55 -03:00
parent 9fef149d10
commit ef43c102aa
12 changed files with 1191 additions and 6 deletions

View File

@@ -0,0 +1,13 @@
use axum::{
routing::{get, post},
Router
};
use crate::handler::health::{health_check};
use crate::handler::message::{send_message};
pub fn create_route() -> Router {
Router::new()
.route("/health", get(health_check))
.route("/message", post(send_message))
}