Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- config.Routes.MapHttpRoute(
- name: "DefaultApi",
- routeTemplate: "api/{controller}/{id}",
- defaults: new { id = RouteParameter.Optional }
- );
- config.Routes.MapHttpRoute(
- name: "FindDetailsByCountry",
- routeTemplate: "api/{controller}/FindDetailsByCountry/{country}",
- defaults: new { country = RouteParameter.Optional },
- constraints: new { country = @"^[a-z]+$" }
- );
- constraints: new { country = @"^[a-z]+$" }
- constraints: new { country = @"^[a-z]s+$" }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement