16 lines
228 B
Go
16 lines
228 B
Go
package controllers
|
|
|
|
import (
|
|
"addrss/pkg/router"
|
|
)
|
|
|
|
type Health struct{}
|
|
|
|
func (h Health) AddRoutes() {
|
|
router.AddGet("/health", healthCheck).Anonymous()
|
|
}
|
|
|
|
func healthCheck(ctx *router.Context) {
|
|
ctx.Response.NoContent()
|
|
}
|