Skip to content
Snippets Groups Projects
generalRoutes.go 265 B
Newer Older
  • Learn to ignore specific revisions
  • Jonas Leder's avatar
    Jonas Leder committed
    package server
    
    import (
    	"net/http"
    
    	"github.com/gin-gonic/gin"
    )
    
    func initGeneralRoutes() {
    	R.GET("/ready", func(ctx *gin.Context) {
    		ctx.String(http.StatusOK, "OK")
    	})
    	R.GET("/", func(ctx *gin.Context) {
    		ctx.String(http.StatusOK, "EMS-ESP server")
    	})
    }