reorg
This commit is contained in:
parent
e82e51af2d
commit
b604f157ab
@ -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"})
|
||||||
}
|
}
|
@ -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
BIN
src/test.db
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user