Initial commit
This commit is contained in:
12
internal/handlers/handlers.go
Normal file
12
internal/handlers/handlers.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// PingHandler responds with a JSON message "pong".
|
||||
func PingHandler(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, gin.H{"message": "pong"})
|
||||
}
|
||||
Reference in New Issue
Block a user