This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
defmodule DecentralisedBookIndexWeb.AshJsonApiRouter do
|
||||
use AshJsonApi.Router,
|
||||
domains: [],
|
||||
domains: [Module.concat(["DecentralisedBookIndex.Metadata"])],
|
||||
open_api: "/open_api"
|
||||
end
|
||||
|
||||
@@ -21,12 +21,12 @@ defmodule DecentralisedBookIndexWeb.Router do
|
||||
plug :set_actor, :user
|
||||
end
|
||||
|
||||
scope "/api/json" do
|
||||
scope "/api/v1/json" do
|
||||
pipe_through [:api]
|
||||
|
||||
forward "/swaggerui",
|
||||
OpenApiSpex.Plug.SwaggerUI,
|
||||
path: "/api/json/open_api",
|
||||
path: "/api/v1/json/open_api",
|
||||
default_model_expand_depth: 4
|
||||
|
||||
forward "/", DecentralisedBookIndexWeb.AshJsonApiRouter
|
||||
|
||||
Reference in New Issue
Block a user