Make specific route in frappe

i need to define a specific route in frappe to response to route already exist from another system so i have to to define specific route ,i define api to response to request and i use hooks to be as mediator between internal api and predefined route from the other system

{“source”:“/items?item=laptop”,“target”:r’/api/method/test.api.get_deatal_for_test?item=\1’}

i have to response to source route like ‘/items?item=laptop’

and pass value of item to internal api but not work i so much try and not success

hello, maybe this can help:
https://frappeframework.com/docs/v13/user/en/python-api/hooks#website-route-rules

1 Like