default.go 216 B

123456789101112131415
  1. package handler
  2. import (
  3. "net/http"
  4. "github.com/gin-gonic/gin"
  5. )
  6. func Health(c *gin.Context) {
  7. c.String(http.StatusOK, ":)")
  8. }
  9. func Handle404(c *gin.Context) {
  10. c.String(http.StatusNotFound, "404 NotFound")
  11. }