Skip to content
This repository was archived by the owner on Mar 9, 2025. It is now read-only.

feat: add index route #3

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
1 change: 1 addition & 0 deletions kustomize/base/deployment.yml
Original file line number Diff line number Diff line change
@@ -47,6 +47,7 @@ spec:
runAsGroup: 65534
runAsNonRoot: true
runAsUser: 65534
initContainers: []
securityContext:
fsGroup: 65534
fsGroupChangePolicy: Always
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -9,6 +9,12 @@ import (
func main() {
r := gin.Default()

r.GET("/", func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{
"message": "Hello, World!",
})
})

r.GET("/ping", func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{
"message": "pong",