Routing: Prefix frontend UI routes with /library #840 #2466

Also improves migrations and updates the db schema docs.

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2022-10-15 21:54:11 +02:00
parent 3bad6820d7
commit e3bb8b19dd
202 changed files with 3189 additions and 2608 deletions

View File

@@ -6,9 +6,9 @@ import (
"github.com/gin-gonic/gin"
"github.com/photoprism/photoprism/internal/acl"
"github.com/photoprism/photoprism/internal/get"
"github.com/photoprism/photoprism/internal/i18n"
"github.com/photoprism/photoprism/internal/query"
"github.com/photoprism/photoprism/internal/service"
"github.com/photoprism/photoprism/pkg/txt"
)
@@ -46,7 +46,7 @@ func GetErrors(router *gin.RouterGroup) {
// DELETE /api/v1/errors
func DeleteErrors(router *gin.RouterGroup) {
router.DELETE("/errors", func(c *gin.Context) {
conf := service.Config()
conf := get.Config()
// Disabled in public mode so that attackers cannot cover their tracks.
if conf.Public() {