Skip to content

Commit

Permalink
Remove outdated url modification (#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
skanderm authored Oct 30, 2024
1 parent bfca95f commit ddf814b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions server/lib/orcasite_web/json_api_router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,5 @@ defmodule OrcasiteWeb.JsonApiRouter do
use AshJsonApi.Router,
domains: [Orcasite.Notifications, Orcasite.Radio],
json_schema: "/json_schema",
open_api: "/open_api",
modify_open_api: {__MODULE__, :modify_open_api, []}

def modify_open_api(spec, _, _) do
%{
spec
| servers: Enum.map(spec.servers, &%{&1 | url: &1.url <> "/api/json"})
}
end
open_api: "/open_api"
end

0 comments on commit ddf814b

Please sign in to comment.