paddu.bits
(padma prabhavathi)
#1
Hi Everyone,
We already have a existing webservice with rest api url as:
http://localhost:8080/service_name
We are planning to implement the same webservice using CUBA framework but the url for the rest api call will be:
http://localhost:8080/app/rest/v2/services/service_name
This changes needs api documentation update which might effect customers.
Is there anyway we can change the url pattern in the framework.
Thanks in advance for the help.
tsarev
(Daniil Tsaryov)
#3
Hello @paddu.bits
In this case I suggest you to use custom servlet or controller.
Regards,
Daniil
Without knowing how you built your frontend, you can change your PUBLIC_URL
to something else in .env.production.local
.
$ cat .env.production.local
PUBLIC_URL=/app-front/
REACT_APP_CUBA_URL=/app/rest/
paddu.bits
(padma prabhavathi)
#6
Thanks Everyone I have used Custom Controller