From 0a3ad32e3ce9ca81e7a3bcbdb378bd7aa0340da8 Mon Sep 17 00:00:00 2001 From: jonas hadin Date: Thu, 25 Sep 2014 09:00:04 +0200 Subject: [PATCH] post in readme --- README.md | 4 ++++ src/component_handler.erl | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d9f67e4..e6ff5de 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,8 @@ Running Usage/Routes ------------ +GET + `/components//` - 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. @@ -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//update` - The api fetches the latest tags from diversity.io diff --git a/src/component_handler.erl b/src/component_handler.erl index 22b79f0..dda3a9d 100644 --- a/src/component_handler.erl +++ b/src/component_handler.erl @@ -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 ->