diff options
author | gebele <gebele@in-silico.ch> | 2019-06-13 15:28:59 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2019-06-13 15:28:59 +0000 |
commit | 741701df8ff0861b3607a30e9aaf8b8a0c303cdf (patch) | |
tree | 40fd2c6ca4eb85f3077859d9a808d01ec5aa8ece /lib/feature.rb | |
parent | f37f0b654b36b66c133755c01f033859c35197f6 (diff) |
update with API
Diffstat (limited to 'lib/feature.rb')
-rw-r--r-- | lib/feature.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/feature.rb b/lib/feature.rb index 06a5b37..3123997 100644 --- a/lib/feature.rb +++ b/lib/feature.rb @@ -1,5 +1,5 @@ # Get all Features -get "/feature/?" do +get "/api/feature/?" do features = Feature.all case @accept when "text/uri-list" @@ -16,7 +16,7 @@ get "/feature/?" do end # Get a feature -get "/feature/:id/?" do +get "/api/feature/:id/?" do case @accept when "application/json" feature = Feature.find :id => params[:id] |