18 lines
389 B
Go
18 lines
389 B
Go
package handlers
|
|
|
|
import "net/http"
|
|
|
|
type HandlerSet struct {
|
|
Accounts *AccountsHandler
|
|
Contacts *ContactsHandler
|
|
Deals *DealsHandler
|
|
Stages *StagesHandler
|
|
Activities *ActivitiesHandler
|
|
Notes *NotesHandler
|
|
Tags *TagsHandler
|
|
}
|
|
|
|
func (h HandlerSet) Health(w http.ResponseWriter, r *http.Request) {
|
|
w.WriteHeader(http.StatusOK)
|
|
_, _ = w.Write([]byte("ok"))
|
|
}
|