Custom Route from kong to upstream

My kong is in this location:
kong.mydomain.id

and my backend:
auth.mydomain.id (private)

I want to process login (get JWT Token) by accessing kong.mydomain.id/auth/login by forward request to auth.mydomain.id/authenticate/login

is it possible to make that happen ?

One way of achieving this would be to setup a service:

host = auth.mydomain.id
path = "/authenticate"

and attaching a route to that configured as follows:

path = "/auth"
strip_path = "true"

Requests that come through to kong.mydomain.id/auth/* would be forwarded to auth.mydomain.id/authenticate/*. You could limit to only /auth/login in the same manner if you only want that particular endpoint handled.

Still doesn’t work. the kong showing forward to wrong url