mirror of
https://github.com/tomoko-dev9/nntpchan.git
synced 2026-06-01 20:34:46 +02:00
21 lines
308 B
Go
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)
|
|
}
|