Skip to content

Commit

Permalink
feature: test github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ikurotime committed Dec 26, 2023
1 parent cb6bbbf commit 293c1c3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/routes/user_routes.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
use axum::{Router, routing::{post, get, put, delete}, Json, http::StatusCode};
use axum::{
http::StatusCode,
routing::{delete, get, post, put},
Json, Router,
};
use serde::{Deserialize, Serialize};


pub fn get_routes() -> Router{
pub fn get_routes() -> Router {
Router::new()
.route("/users", get(get_user))
.route("/users", post(create_user))
Expand All @@ -25,7 +28,7 @@ async fn create_user(
(StatusCode::CREATED, Json(user))
}
async fn get_user() -> &'static str {
"Hello, World!!!!!"
"Hello, from github actions!"
}
async fn update_user() -> &'static str {
todo!()
Expand Down

0 comments on commit 293c1c3

Please sign in to comment.