Closed zhuchaoling closed 10 months ago
Is there a feature to detect a 404 error in an API? For example, if the path is 404, return true and redirect to the homepage.
const isNotFoundPath = router.checkNotFound('/test/404') // true
Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.
Is there a feature to detect a 404 error in an API? For example, if the path is 404, return true and redirect to the homepage.
const isNotFoundPath = router.checkNotFound('/test/404') // true