Browse Source

Return 200 OK from the root

pull/154/head
Ayooluwa Isaiah 5 years ago
parent
commit
4be5839849
No known key found for this signature in database
GPG Key ID: 8CF071B5764D484
  1. 3
      protocol/api/api.go

3
protocol/api/api.go

@ -103,6 +103,9 @@ func JWTMiddleware(next http.Handler) http.Handler {
func (s *Server) Serve(l net.Listener) error { func (s *Server) Serve(l net.Listener) error {
mux := http.NewServeMux() mux := http.NewServeMux()
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
})
mux.Handle("/statics/", http.StripPrefix("/statics/", http.FileServer(http.Dir("statics")))) mux.Handle("/statics/", http.StripPrefix("/statics/", http.FileServer(http.Dir("statics"))))
mux.HandleFunc("/control/push", func(w http.ResponseWriter, r *http.Request) { mux.HandleFunc("/control/push", func(w http.ResponseWriter, r *http.Request) {

Loading…
Cancel
Save