use vanity url
This commit is contained in:
@@ -3,8 +3,8 @@ package handler
|
||||
import (
|
||||
"path"
|
||||
|
||||
"github.com/sentriz/gonic/model"
|
||||
"github.com/sentriz/gonic/server/subsonic"
|
||||
"senan.xyz/g/gonic/model"
|
||||
"senan.xyz/g/gonic/server/subsonic"
|
||||
)
|
||||
|
||||
func newAlbumByFolder(f *model.Album) *subsonic.Album {
|
||||
|
||||
@@ -3,8 +3,8 @@ package handler
|
||||
import (
|
||||
"path"
|
||||
|
||||
"github.com/sentriz/gonic/model"
|
||||
"github.com/sentriz/gonic/server/subsonic"
|
||||
"senan.xyz/g/gonic/model"
|
||||
"senan.xyz/g/gonic/server/subsonic"
|
||||
)
|
||||
|
||||
func newAlbumByTags(a *model.Album, artist *model.Artist) *subsonic.Album {
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
"github.com/wader/gormstore"
|
||||
|
||||
"github.com/sentriz/gonic/db"
|
||||
"senan.xyz/g/gonic/db"
|
||||
)
|
||||
|
||||
type contextKey int
|
||||
|
||||
@@ -10,9 +10,9 @@ import (
|
||||
"github.com/gorilla/sessions"
|
||||
"github.com/jinzhu/gorm"
|
||||
|
||||
"github.com/sentriz/gonic/model"
|
||||
"github.com/sentriz/gonic/scanner"
|
||||
"github.com/sentriz/gonic/server/lastfm"
|
||||
"senan.xyz/g/gonic/model"
|
||||
"senan.xyz/g/gonic/scanner"
|
||||
"senan.xyz/g/gonic/server/lastfm"
|
||||
)
|
||||
|
||||
func (c *Controller) ServeLogin(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
|
||||
"github.com/jinzhu/gorm"
|
||||
|
||||
"github.com/sentriz/gonic/model"
|
||||
"github.com/sentriz/gonic/server/subsonic"
|
||||
"senan.xyz/g/gonic/model"
|
||||
"senan.xyz/g/gonic/server/subsonic"
|
||||
)
|
||||
|
||||
// the subsonic spec metions "artist" a lot when talking about the
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
|
||||
"github.com/jinzhu/gorm"
|
||||
|
||||
"github.com/sentriz/gonic/model"
|
||||
"github.com/sentriz/gonic/server/subsonic"
|
||||
"senan.xyz/g/gonic/model"
|
||||
"senan.xyz/g/gonic/server/subsonic"
|
||||
)
|
||||
|
||||
func (c *Controller) GetArtists(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
@@ -10,10 +10,10 @@ import (
|
||||
|
||||
"github.com/jinzhu/gorm"
|
||||
|
||||
"github.com/sentriz/gonic/model"
|
||||
"github.com/sentriz/gonic/scanner"
|
||||
"github.com/sentriz/gonic/server/lastfm"
|
||||
"github.com/sentriz/gonic/server/subsonic"
|
||||
"senan.xyz/g/gonic/model"
|
||||
"senan.xyz/g/gonic/scanner"
|
||||
"senan.xyz/g/gonic/server/lastfm"
|
||||
"senan.xyz/g/gonic/server/subsonic"
|
||||
)
|
||||
|
||||
func lowerUDecOrHash(in string) string {
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
|
||||
jd "github.com/josephburnett/jd/lib"
|
||||
|
||||
"github.com/sentriz/gonic/db"
|
||||
"senan.xyz/g/gonic/db"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
|
||||
"github.com/gorilla/sessions"
|
||||
|
||||
"github.com/sentriz/gonic/model"
|
||||
"senan.xyz/g/gonic/model"
|
||||
)
|
||||
|
||||
//nolint:interfacer
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
"github.com/gorilla/sessions"
|
||||
|
||||
"github.com/sentriz/gonic/model"
|
||||
"senan.xyz/g/gonic/model"
|
||||
)
|
||||
|
||||
type templateData struct {
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
"github.com/sentriz/gonic/server/subsonic"
|
||||
"senan.xyz/g/gonic/server/subsonic"
|
||||
)
|
||||
|
||||
type metaResponse struct {
|
||||
|
||||
Reference in New Issue
Block a user