This repository has been archived on 2026-01-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
cover-letter-templater/backend/routes/routes.go
T

20 lines
237 B
Go
Raw Normal View History

2025-07-03 17:55:15 +03:00
package routes
import (
"net/http"
2025-07-03 21:58:49 +03:00
"github.com/gin-gonic/gin"
2025-07-03 17:55:15 +03:00
)
2025-07-03 21:58:49 +03:00
func SetupRoutes() *gin.Engine {
r := gin.Default()
2025-07-03 17:55:15 +03:00
2025-07-03 21:58:49 +03:00
r.GET("/ping", func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{
"message": "pong",
})
2025-07-03 17:55:15 +03:00
})
return r
}