Skip to content

Commit

Permalink
feat: added allowed included entry path (#725)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyrch authored Aug 13, 2024
1 parent 6b1b612 commit c04b155
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ REDIS_DB=0
REDIS_CACHE_DB=1

# dump
DUMP_DISK=dumps
DUMP_DISK=dumps_local
DUMP_DISK_ROOT=
DUMP_URL=http://localhost
DUMP_PATH=/dump
Expand Down
2 changes: 2 additions & 0 deletions app/Http/Api/Schema/List/PlaylistSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use App\Http\Api\Schema\Auth\UserSchema;
use App\Http\Api\Schema\EloquentSchema;
use App\Http\Api\Schema\List\Playlist\TrackSchema;
use App\Http\Api\Schema\Wiki\Anime\Theme\EntrySchema;
use App\Http\Api\Schema\Wiki\ArtistSchema;
use App\Http\Api\Schema\Wiki\AudioSchema;
use App\Http\Api\Schema\Wiki\GroupSchema;
Expand Down Expand Up @@ -62,6 +63,7 @@ public function allowedIncludes(): array
new AllowedInclude(new ArtistSchema(), 'tracks.animethemeentry.animetheme.song.artists'),
new AllowedInclude(new AudioSchema(), 'tracks.video.audio'),
new AllowedInclude(new ImageSchema(), 'tracks.video.animethemeentries.animetheme.anime.images'),
new AllowedInclude(new EntrySchema(), 'tracks.animethemeentry'),
new AllowedInclude(new ImageSchema(), 'tracks.animethemeentry.animetheme.anime.images'),
new AllowedInclude(new VideoSchema(), 'tracks.video'),
new AllowedInclude(new GroupSchema(), 'tracks.video.animethemeentries.animetheme.group'),
Expand Down

0 comments on commit c04b155

Please sign in to comment.