Skip to content

Commit

Permalink
[Temporary fix for #22] basePath doesn't properly work as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
Brujo Benavides committed Oct 14, 2015
1 parent 2793833 commit e92bb80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/config/sys.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{global_spec,
#{swagger => "2.0",
info => #{title => "Example API"},
basePath => "/api-docs"
basePath => ""
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion example/src/example_default.erl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ rest_init(Req, _Opts) ->
{ok, Req, #{}}.

content_types_accepted(Req, State) ->
{[{<<"text/plain">>, handle_put}], Req, State}.
{[{'*', handle_put}], Req, State}.

content_types_provided(Req, State) ->
{[{<<"text/plain">>, handle_get}], Req, State}.
Expand Down

0 comments on commit e92bb80

Please sign in to comment.