Not reading route if path is not the same with its service

Hi. I’ve created this service

{
    "host": "IP-address",
    "created_at": 1590017412,
    "connect_timeout": 60000,
    "id": "SomeID,
    "protocol": "http",
    "name": "users",
    "read_timeout": 60000,
    "port": SomePort,
    "path": "/v1/users/",
    "updated_at": 1590025825,
    "retries": 5,
    "write_timeout": 60000,
    "tags": null,
    "client_certificate": null
}

and attached this route

{
    "next": null,
    "data": [
        {
            "id": "SomeID",
            "tags": null,
            "updated_at": 1590026553,
            "destinations": null,
            "headers": null,
            "protocols": [
                "http",
                "https"
            ],
            "created_at": 1590017585,
            "snis": null,
            "service": {
                "id": "SomeID"
            },
            "name": "login",
            "preserve_host": false,
            "regex_priority": 0,
            "strip_path": true,
            "sources": null,
            "paths": [
                "/v1/users/login",
                "/v1/users/signup"
            ],
            "https_redirect_status_code": 426,
            "hosts": null,
            "methods": [
                "POST"
            ]
        }
    ]
}

When I request to domain/v1/users/login I get error Cannot POST /v1/users/. It’s reading the service path but not the route under.


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ