Skip to content

Commit

Permalink
fix: don't double add a prefix to the router
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Nov 28, 2023
1 parent eeb8110 commit 54bf932
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/ash_json_api/api/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ defmodule AshJsonApi.Api.Router do
]
|> Enum.reject(fn {_k, v} -> is_nil(v) end)

# prefix router
route = (prefix || "") <> route

match(route, via: method, to: controller, init_opts: opts)
end
end)
Expand Down

0 comments on commit 54bf932

Please sign in to comment.