DEVELOPMENT ENVIRONMENT

~liljamo/felu

9c727c0722503a714cb691b9549fbff47937a0d6 — Jonni Liljamo 1 year, 1 month ago e2224b6
feat: version api endpoint
1 files changed, 6 insertions(+), 0 deletions(-)

M felu.go
M felu.go => felu.go +6 -0
@@ 46,6 46,12 @@ func setupBackendRouter() *gin.Engine {
		})
	})

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

	return r
}