Initial commit
This commit is contained in:
15
internal/controllers/health.go
Normal file
15
internal/controllers/health.go
Normal file
@@ -0,0 +1,15 @@
|
||||
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()
|
||||
}
|
||||
Reference in New Issue
Block a user