Skip to content

Commit 9190535

Browse files
authored
Merge pull request #2 from jifalops/pr-test-2
test pr
2 parents f158a3f + 7793641 commit 9190535

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# API Rust
22

33
[![.github/workflows/test.yml](https://github.com/jifalops/api-rust/actions/workflows/test.yml/badge.svg)](https://github.com/jifalops/api-rust/actions/workflows/test.yml)
4-
54
[![.github/workflows/deploy_lambda.yml](https://github.com/jifalops/api-rust/actions/workflows/deploy_lambda.yml/badge.svg)](https://github.com/jifalops/api-rust/actions/workflows/deploy_lambda.yml)
65

76
A template repo for building a Rust/Axum API using a dev-container.

lib/src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ async fn handler() -> Html<&'static str> {
5252

5353
pub async fn auth<A: App>(State(app): State<Arc<A>>) -> Json<&'static str> {
5454
match app.auth().authenticate("valid").await {
55-
Ok(()) => Json("authenticated!"),
56-
Err(()) => Json("unauthenticated!"),
55+
Ok(()) => Json("authenticated"),
56+
Err(()) => Json("unauthenticated"),
5757
}
5858
}

0 commit comments

Comments
 (0)