3 ms·
You can add multiple routes for a resource. App.new().service( web::resource("/welcome") .route(web::get().to(welcome)) .ro
by iruoy 7y ago
You can add multiple routes for a resource.
App.new().service(
web::resource("/welcome")
.route(web::get().to(welcome))
.route(web::post().to(post_handler))