beego / bee

Bee is a tool for helping develop with beego app framework.
Apache License 2.0
1.44k stars 921 forks source link

Default 'bee api' returns 404 #828

Closed reavessm closed 2 years ago

reavessm commented 2 years ago

Running 'bee api foo' creates a project, but 'bee run' returns 404 no matter what endpoint you hit.

bee version: 1.12.0 go version: 1.16.15

Screenshot from 2022-06-15 11-44-41

I wonder if it has something to do with the router.go file being different than the 'bee new' command.

https://github.com/beego/bee/blob/develop/cmd/commands/api/apiapp.go#L124-L154

vs

https://github.com/beego/bee/blob/develop/cmd/commands/new/new.go#L81-L91

reavessm commented 2 years ago

I tried this on a different system with a different version of go and it worked. Must be a setup error then...