Add version endpoint (#146)

This commit is contained in:
httpjamesm
2024-07-25 10:51:05 -07:00
committed by GitHub
parent 4c971f3121
commit 1a7635ccef
2 changed files with 12 additions and 0 deletions

10
src/routes/version.go Normal file
View File

@ -0,0 +1,10 @@
package routes
import (
"anonymousoverflow/config"
"github.com/gin-gonic/gin"
)
func GetVersion(c *gin.Context) {
c.String(200, config.Version)
}