chore: fix whitespace
This commit is contained in:
@@ -57,7 +57,7 @@ func RequireAuth(next http.Handler) http.Handler {
|
||||
r = r.WithContext(ctx)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
user, ok := r.Context().Value(ctxpkg.UserKey).(*database.User)
|
||||
if !ok || user == nil {
|
||||
if strings.HasPrefix(r.URL.Path, "/api/") {
|
||||
|
||||
@@ -52,7 +52,7 @@ func NewRouter(cfg Config) http.Handler {
|
||||
middleware.InitAuth(cfg.AuthService)
|
||||
|
||||
animeHandler := anime.NewHandler(cfg.JikanClient, cfg.DB)
|
||||
|
||||
|
||||
playbackSvc := playback.NewService(cfg.DB, cfg.SQLDB, playback.Config{
|
||||
ProxyTokenSecret: cfg.PlaybackProxySecret,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user