Add local agent, only for images

This commit is contained in:
Deluan
2022-12-30 23:52:53 -05:00
committed by Deluan Quintão
parent 387acc5f63
commit bf461473ef
15 changed files with 134 additions and 76 deletions
-10
View File
@@ -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
}