Im creating a system that users can add project information too. Part of the system has sub forms that hang off of the project. Im trying to get my head around how to set up the routing and wondered if its possible to create routes like below.

/project/
/project/12345
/project/12345/bid - id is the same as the project e.g 12345
/project/12345/bid/create - id is the same as the project e.g 12345
/project/12345/bid/edit - id is the same as the project e.g 12345

Is this a good idea or would it be better to do

/bid
/bid/create - id is the same as the project e.g 12345
/bid/12345 - id is the same as the project e.g 12345
/bid/12345/edit - id is the same as the project e.g 12345

Related posts

Recent Viewed