Skip to content

Commit

Permalink
/v1/country endpoint should handle all verbs, as ichnea did (#160)
Browse files Browse the repository at this point in the history
* Handle all verbs for /v1/country
  • Loading branch information
alexcottner authored Jun 13, 2024
1 parent 8e531cd commit a577251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async fn main() -> Result<(), ClassifyError> {
web::resource("/api/v1/classify_client/")
.route(web::get().to(classify::classify_client)),
)
.service(web::resource("/v1/country").route(web::get().to(country::get_country)))
.service(web::resource("/v1/country").route(web::route().to(country::get_country)))
// Dockerflow Endpoints
.service(
web::resource("/__lbheartbeat__").route(web::get().to(dockerflow::lbheartbeat)),
Expand Down

0 comments on commit a577251

Please sign in to comment.