Files
nntpchan/contrib/backends/srndv2/src/nntpchan/lib/api/server.go
T
2016-11-18 09:54:13 -05:00

21 lines
308 B
Go

package api
import (
"github.com/gorilla/mux"
"net/http"
)
// api server
type Server struct {
}
func (s *Server) HandlePing(w http.ResponseWriter, r *http.Request) {
}
// inject api routes
func (s *Server) SetupRoutes(r *mux.Router) {
// setup api pinger
r.Path("/ping").HandlerFunc(s.HandlePing)
}