For cases where there is no path or method pair matched for the request, we can add a default handler. Our microservice returns a 404 error for all unknown requests. Add this to the router! macro call:
_ => {
Response::empty_404()
}
For cases where there is no path or method pair matched for the request, we can add a default handler. Our microservice returns a 404 error for all unknown requests. Add this to the router! macro call:
_ => {
Response::empty_404()
}
18.191.139.169