implemented use of auth on single room endpoint
This commit is contained in:
@@ -32,7 +32,7 @@ pub struct JwtKeys {
|
||||
|
||||
pub async fn token_tester(
|
||||
State(state): State<AppState>,
|
||||
Extension(keys): Extension<JwtKeys>,
|
||||
//Extension(keys): Extension<JwtKeys>,
|
||||
AuthClaims { user_id, hotel_id, username }: AuthClaims,
|
||||
) -> impl IntoResponse {
|
||||
format!(
|
||||
|
||||
Reference in New Issue
Block a user