element/server/routes.go
Evan Hazlett 7574b334cc
start on api
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2017-07-29 10:11:50 -04:00

12 lines
198 B
Go

package server
import (
"github.com/gorilla/mux"
)
func (s *Server) router() (*mux.Router, error) {
r := mux.NewRouter()
r.HandleFunc("/", s.getRequestHandler).Methods("GET")
return r, nil
}