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

@@ -13,10 +13,10 @@ import (
"github.com/photoprism/photoprism/internal/entity"
"github.com/photoprism/photoprism/internal/event"
"github.com/photoprism/photoprism/internal/form"
"github.com/photoprism/photoprism/internal/get"
"github.com/photoprism/photoprism/internal/i18n"
"github.com/photoprism/photoprism/internal/photoprism"
"github.com/photoprism/photoprism/internal/query"
"github.com/photoprism/photoprism/internal/service"
"github.com/photoprism/photoprism/pkg/clean"
)
@@ -45,7 +45,7 @@ func BatchPhotosArchive(router *gin.RouterGroup) {
log.Infof("photos: archiving %s", clean.Log(f.String()))
if service.Config().BackupYaml() {
if get.Config().BackupYaml() {
// Fetch selection from index.
photos, err := query.SelectedPhotos(f)
@@ -108,7 +108,7 @@ func BatchPhotosRestore(router *gin.RouterGroup) {
log.Infof("photos: restoring %s", clean.Log(f.String()))
if service.Config().BackupYaml() {
if get.Config().BackupYaml() {
// Fetch selection from index.
photos, err := query.SelectedPhotos(f)
@@ -346,7 +346,7 @@ func BatchPhotosDelete(router *gin.RouterGroup) {
return
}
conf := service.Config()
conf := get.Config()
if conf.ReadOnly() || !conf.Settings().Features.Delete {
AbortFeatureDisabled(c)