json support
This commit is contained in:
@@ -31,8 +31,10 @@ func NewServer(port string) (*Server, error) {
|
||||
|
||||
router := mux.NewRouter()
|
||||
router.HandleFunc("/events", eventsHandler).Methods("POST")
|
||||
router.HandleFunc("/events/json", eventsHandlerJson).Methods("POST")
|
||||
router.HandleFunc("/health", healthHandler).Methods("GET")
|
||||
router.HandleFunc("/health/toggle", healthToggleHandler).Methods("GET")
|
||||
// router.HandleFunc("/test", testHandler).Methods("GET")
|
||||
// router.HandleFunc("/schema/refresh", schemaRefreshHandler).Methods("POST")
|
||||
// router.HandleFunc("/stop", stopHandler).Methods("POST")
|
||||
|
||||
@@ -41,4 +43,3 @@ func NewServer(port string) (*Server, error) {
|
||||
return newServer, nil
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user