-
Aryan Noshirvnai authored
Every route in this router trusted a client-supplied user_id/owner_id instead of deriving it from the JWT like every other router in the app (soundmarks, social, discovery, library all use get_current_user) - any caller could create a channel as any user, follow/unfollow as any user, or post vibe-sets/stories/showcases as any user by just changing a number in the request body. Also none of the routes required auth at all, including plain reads. Adds get_current_user to every route and derives the caller's identity from current_user.id instead, removing the now-redundant id fields from every request schema. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
f25ef119
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| __init__.py | ||
| auth.py | ||
| channels.py | ||
| discovery.py | ||
| library.py | ||
| music.py | ||
| remix.py | ||
| social.py | ||
| soundmarks.py |