Open 012e opened 2 years ago
Ah good catch. I'm assuming you wanted multiple versions? For now, I'd probably suggest v1
, v2
.
If you manually fix that export does the rest of bud work? I'm wondering if the controller props are also affected.
If you manually fix that export does the rest of bud work?
No it doesn't work, just 404 page not found
Need to think more about this one. Can you explain why you want this @012e?
It's definitely possible to have controller/1/controllers.go, with the following:
package controller
type Controller struct {}
func (c *Controller) Index() { }
But the package /1
isn't really resourceful. Maybe it's nice for versioning? But then you could do v1/
which I think is more clear. I'm leaning towards handling this in custom routes.
I don't need this. It's just an edge case I found.
When we create a route with a number at the beginning
The controller is not generated but the view is.
Result in