Rocking github.com/sourcegraph/thesrc template

- Working in client, router, and basic models (user)
This commit is contained in:
Matthew Dillon 2014-09-23 16:39:45 -08:00
parent a1d954d5fd
commit da7be2e150
10 changed files with 533 additions and 0 deletions

9
router/api.go Normal file
View 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
View file

@ -0,0 +1,5 @@
package router
const (
User = "user"
)