/v1/country endpoint should handle all verbs, as ichnea did (#160)
* Handle all verbs for /v1/country
This commit is contained in:
Родитель
8e531cdfe8
Коммит
a577251825
|
@ -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)),
|
||||
|
|
Загрузка…
Ссылка в новой задаче