poem icon indicating copy to clipboard operation
poem copied to clipboard

catch_error doesn't work with EmbeddedFilesEndpoint

Open bradleybensmith opened this issue 1 year ago • 2 comments

I can't seem to get this to work:

let app = Route::new()
        .nest("/", EmbeddedFilesEndpoint::<FrontendAssets>::new())
        .catch_error(custom_404);

The custom_404 is never called and an empty 404 is returned.

How do I implement a custom 404 with EmbeddedFilesEndpoint?

bradleybensmith avatar Jan 20 '24 19:01 bradleybensmith

I can't reproduce it. Can you provide a code repository that can reproduce it?

sunli829 avatar Jan 21 '24 02:01 sunli829

See https://github.com/bradleybensmith/poem-embed

bradleybensmith avatar Jan 21 '24 05:01 bradleybensmith