Refactored REST API (renamed package to api)

This commit is contained in:
Michael Mayer 2018-09-24 21:14:15 +02:00
parent fe5aa4aa01
commit 2ae77b7686
3 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
package routes
package api
import (
"github.com/gin-gonic/gin"

View File

@ -1,4 +1,4 @@
package routes
package api
import (
"fmt"

View File

@ -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)