mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-25 03:19:55 +01:00
Add local agent, only for images
This commit is contained in:
parent
387acc5f63
commit
bf461473ef
15 changed files with 134 additions and 76 deletions
|
|
@ -3,7 +3,6 @@ package public
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"time"
|
||||
|
|
@ -27,15 +26,6 @@ func New(artwork artwork.Artwork) *Router {
|
|||
p := &Router{artwork: artwork}
|
||||
p.Handler = p.routes()
|
||||
|
||||
t, err := auth.CreatePublicToken(map[string]any{
|
||||
"id": "al-ee07551e7371500da55e23ae8520f1d8",
|
||||
"size": 300,
|
||||
})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Println("!!!!!!!!!!!!!!!!!", t, "!!!!!!!!!!!!!!!!")
|
||||
|
||||
return p
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue