Rocking github.com/sourcegraph/thesrc template
- Working in client, router, and basic models (user)
This commit is contained in:
parent
a1d954d5fd
commit
da7be2e150
10 changed files with 533 additions and 0 deletions
9
router/api.go
Normal file
9
router/api.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
package router
|
||||
|
||||
import "github.com/gorilla/mux"
|
||||
|
||||
func API() *mux.Router {
|
||||
m := mux.NewRouter()
|
||||
m.Path("/users/{Id:.+}").Methods("GET").Name(User)
|
||||
return m
|
||||
}
|
5
router/routes.go
Normal file
5
router/routes.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
package router
|
||||
|
||||
const (
|
||||
User = "user"
|
||||
)
|
Reference in a new issue