Skip to content

Commit

Permalink
Merge pull request #76 from yknx4/bugfix/jsonapi-name-clash
Browse files Browse the repository at this point in the history
Avoid JsonApi module class by adding ExqUi prefix
  • Loading branch information
akira authored Mar 14, 2019
2 parents f9e8f0f + ae03290 commit a63c723
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/json_api.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule JsonApi do
defmodule ExqUi.JsonApi do
def init(opts), do: opts

def call(conn, opts) do
Expand Down
2 changes: 1 addition & 1 deletion web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ defmodule ExqUi.RouterPlug do
use Plug.Router

plug Plug.Static, at: "/", from: :exq_ui
plug JsonApi, on: "api"
plug ExqUi.JsonApi, on: "api"

plug :match
plug :dispatch
Expand Down

0 comments on commit a63c723

Please sign in to comment.