poem
poem copied to clipboard
catch_error doesn't work with EmbeddedFilesEndpoint
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?
I can't reproduce it. Can you provide a code repository that can reproduce it?
See https://github.com/bradleybensmith/poem-embed