Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use public action for graphql, generic read for others #580

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions server/lib/orcasite/radio/feed.ex
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ defmodule Orcasite.Radio.Feed do
prepare build(load: [:lat_lng, :lat_lng_string, :online])
end

read :index do
read :public do
filter expr(visible)
prepare build(load: [:lat_lng, :lat_lng_string, :online])
end
Expand Down Expand Up @@ -186,7 +186,7 @@ defmodule Orcasite.Radio.Feed do
routes do
base "/feeds"

index :index
index :read
end
end

Expand All @@ -195,7 +195,7 @@ defmodule Orcasite.Radio.Feed do

queries do
read_one :feed, :get_by_slug, allow_nil?: false
list :feeds, :index
list :feeds, :public
end
end

Expand Down
Loading