This commit is contained in:
celogeek 2021-12-25 17:41:00 +01:00
parent e82e51af2d
commit b604f157ab
Signed by: celogeek
GPG Key ID: E6B7BDCFC446233A
5 changed files with 3 additions and 3 deletions

View File

@ -8,6 +8,6 @@ import (
// GET / // GET /
func DefaultRoot(c *gin.Context) { func Root(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"status": "ok"}) c.JSON(http.StatusOK, gin.H{"status": "ok"})
} }

View File

@ -5,7 +5,7 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"gitlab.celogeek.com/photos/api/src/controllers" "gitlab.celogeek.com/photos/api/src/controllers"
"gitlab.celogeek.com/photos/api/src/controllers/models" "gitlab.celogeek.com/photos/api/src/models"
) )
func main() { func main() {
@ -16,7 +16,7 @@ func main() {
models.ConnectDatabase(dbFilename) models.ConnectDatabase(dbFilename)
r.GET("/", controllers.DefaultRoot) r.GET("/", controllers.Root)
r.Run() r.Run()
} }

BIN
src/test.db Normal file

Binary file not shown.