File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
# API Rust
2
2
3
3
[ ![ .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
-
5
4
[ ![ .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 )
6
5
7
6
A template repo for building a Rust/Axum API using a dev-container.
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ async fn handler() -> Html<&'static str> {
52
52
53
53
pub async fn auth < A : App > ( State ( app) : State < Arc < A > > ) -> Json < & ' static str > {
54
54
match app. auth ( ) . authenticate ( "valid" ) . await {
55
- Ok ( ( ) ) => Json ( "authenticated! " ) ,
56
- Err ( ( ) ) => Json ( "unauthenticated! " ) ,
55
+ Ok ( ( ) ) => Json ( "authenticated" ) ,
56
+ Err ( ( ) ) => Json ( "unauthenticated" ) ,
57
57
}
58
58
}
You can’t perform that action at this time.
0 commit comments