gin-gonic / gin

Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
https://gin-gonic.com/
MIT License
78.92k stars 8.02k forks source link

restfull api #1992

Closed yinpeihao closed 5 years ago

yinpeihao commented 5 years ago
url.GET("/projects/mine", view.GetMyProject)
url.GET("/projects/:id", view.GetProjectById)

Why doesn't that work by this way in gin? In java frameword(spring-mvc), similar code can work fine~

(sorry, I'm not good at English)

thinkerou commented 5 years ago

please see #388 thanks!