File tree 1 file changed +3
-2
lines changed
packages/perseus-axum/src
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,8 @@ pub async fn get_router<M: MutableStore + 'static, T: TranslationsManager + 'sta
71
71
"/.perseus/bundle.wasm.js" ,
72
72
get_service ( ServeFile :: new ( opts. wasm_js_bundle . clone ( ) ) ) . handle_error ( handle_fs_error) ,
73
73
)
74
- . route (
75
- "/.perseus/snippets/*path " ,
74
+ . nest_service (
75
+ "/.perseus/snippets" ,
76
76
get_service ( ServeDir :: new ( opts. snippets ) ) . handle_error ( handle_fs_error) ,
77
77
) ;
78
78
// --- Translation and subsequent load handlers ---
@@ -146,6 +146,7 @@ pub async fn get_router<M: MutableStore + 'static, T: TranslationsManager + 'sta
146
146
147
147
// TODO Review if there's anything more to do here
148
148
async fn handle_fs_error ( _err : std:: io:: Error ) -> impl IntoResponse {
149
+ dbg ! ( "Error!" ) ;
149
150
( StatusCode :: INTERNAL_SERVER_ERROR , "Couldn't serve file." )
150
151
}
151
152
You can’t perform that action at this time.
0 commit comments