aboutsummaryrefslogtreecommitdiff
path: root/web/lib
diff options
context:
space:
mode:
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/api/langtag.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/lib/api/langtag.rb b/web/lib/api/langtag.rb
index 1c2eca1..3f4f505 100644
--- a/web/lib/api/langtag.rb
+++ b/web/lib/api/langtag.rb
@@ -1,7 +1,7 @@
# web/lib/api/langtag.rb
class Taginfo < Sinatra::Base
- api(2, 'langtag/name', {
+ api(4, 'keys/name', {
:description => 'Get list of keys from the database that contain the string "name".',
:parameters => { :query => 'Only show keys matching this query (substring match, optional).' },
:paging => :optional,
@@ -75,7 +75,7 @@ class Taginfo < Sinatra::Base
@@bcp47_filters[type.to_sym] = { :expr => type, :doc => "Show entries of type '#{type}' only." };
end
- api(2, 'langtag/bcp47', {
+ api(4, 'langtags', {
:description => 'Get official subtags from the IETF BCP47 registry.',
:parameters => { :query => 'Only show entries matching this query (case insensitive substring match on subtags and description; optional).' },
:paging => :optional,