Refactored REST API (renamed package to api)
This commit is contained in:
parent
fe5aa4aa01
commit
2ae77b7686
3 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
package routes
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
|
@ -1,4 +1,4 @@
|
|||
package routes
|
||||
package api
|
||||
|
||||
import (
|
||||
"fmt"
|
|
@ -2,8 +2,8 @@ package server
|
|||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/photoprism/photoprism/internal/api"
|
||||
"github.com/photoprism/photoprism/internal/photoprism"
|
||||
"github.com/photoprism/photoprism/internal/routes"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
|
@ -18,8 +18,8 @@ func registerRoutes(app *gin.Engine, conf *photoprism.Config) {
|
|||
// JSON-REST API Version 1
|
||||
v1 := app.Group("/api/v1")
|
||||
{
|
||||
routes.GetPhotos(v1, conf)
|
||||
routes.GetThumbnail(v1, conf)
|
||||
api.GetPhotos(v1, conf)
|
||||
api.GetThumbnail(v1, conf)
|
||||
}
|
||||
|
||||
// Default HTML page (client-side routing implemented via Vue.js)
|
||||
|
|
Loading…
Reference in a new issue