BlackBoxVision / typescript-hapi-starter

🚀 Starter for building APIs with Hapi + Typescript!
MIT License
128 stars 28 forks source link

How can I work with different param strings. #23

Closed renilbabu03 closed 5 years ago

renilbabu03 commented 5 years ago

This is one of the nicest repo. Thanks for creating such awesome project.

I am building api's where the url param id strings will be different.

e.g /api/users/{USER_ID} , /api/products/{PRODUCT_ID}.

But the current crud controller only supports {id}.

How can I achieve this without overriding the crud controller. Is it doable.?

JonatanSalas commented 5 years ago

@renilbabu03 in the latest commit I have added the ability to pass a custom ID, check how to use it in the repo! And also let me know it the solution helps you 😄

JonatanSalas commented 5 years ago

@renilbabu03 closing issue! If you need anything else related to this, please re-open it.