reorg
This commit is contained in:
parent
e82e51af2d
commit
b604f157ab
@ -8,6 +8,6 @@ import (
|
||||
|
||||
// GET /
|
||||
|
||||
func DefaultRoot(c *gin.Context) {
|
||||
func Root(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, gin.H{"status": "ok"})
|
||||
}
|
@ -5,7 +5,7 @@ import (
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"gitlab.celogeek.com/photos/api/src/controllers"
|
||||
"gitlab.celogeek.com/photos/api/src/controllers/models"
|
||||
"gitlab.celogeek.com/photos/api/src/models"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@ -16,7 +16,7 @@ func main() {
|
||||
|
||||
models.ConnectDatabase(dbFilename)
|
||||
|
||||
r.GET("/", controllers.DefaultRoot)
|
||||
r.GET("/", controllers.Root)
|
||||
|
||||
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