File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ pub fn define_routes(app_state: AppState) -> Router {
120
120
. merge ( user_session_protected_routes ( ) )
121
121
. merge ( coaching_sessions_routes ( app_state. clone ( ) ) )
122
122
. merge ( jwt_routes ( app_state. clone ( ) ) )
123
- // FIXME: protect the OpenAPI web UI
123
+ // **** FIXME: protect the OpenAPI web UI
124
124
. merge ( RapiDoc :: with_openapi ( "/api-docs/openapi2.json" , ApiDoc :: openapi ( ) ) . path ( "/rapidoc" ) )
125
125
. fallback_service ( static_routes ( ) )
126
126
}
@@ -302,7 +302,7 @@ pub fn user_routes(app_state: AppState) -> Router {
302
302
pub fn user_session_protected_routes ( ) -> Router {
303
303
Router :: new ( )
304
304
. route ( "/protected" , get ( user_session_controller:: protected) )
305
- . route ( "/logout" , get ( user_session_controller:: logout) )
305
+ . route ( "/logout" , delete ( user_session_controller:: logout) )
306
306
. route_layer ( login_required ! ( Backend , login_url = "/login" ) )
307
307
}
308
308
You can’t perform that action at this time.
0 commit comments