This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
bactdb/router/api.go
2014-09-30 09:51:07 -08:00

10 lines
205 B
Go

package router
import "github.com/gorilla/mux"
func API() *mux.Router {
m := mux.NewRouter()
m.Path("/users").Methods("GET").Name(Users)
m.Path("/users/{Id:.+}").Methods("GET").Name(User)
return m
}