Skip to content

Commit

Permalink
post in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas hadin committed Sep 25, 2014
1 parent 8ad43d3 commit 0a3ad32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Running
Usage/Routes
------------

GET

`/components/<component>/` - Lists all tagged versions of the component
`/components/` - Lists information of all public components on diversity.io
`/components/?grouping=sidebar` - Lists all components that have sidebar configured in their grouping attribute.
Expand All @@ -48,4 +50,6 @@ Usage/Routes

Note: All the version selection methods can be used to get settings, settingsForm and files from the selected version.

POST

`/components/<component>/update` - The api fetches the latest tags from diversity.io
2 changes: 1 addition & 1 deletion src/component_handler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ handle_get(Req, _State=#state{}) ->
end,
{ok, Req4}.

expand_tag(<<"*/">>, Tags) -> find_latest_tag(Tags);
expand_tag(<<"*">>, Tags) -> find_latest_tag(Tags);
expand_tag(Tag, Tags) ->
case lists:member(Tag, Tags) of
true ->
Expand Down

0 comments on commit 0a3ad32

Please sign in to comment.