diff options
author | Jochen Topf <jochen@topf.org> | 2011-03-07 18:33:34 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2011-03-07 18:33:34 +0100 |
commit | f3c295352f3ec814e80e204b5e785fc2505e05cd (patch) | |
tree | 73bae8cba775a70c9da5380990e19302f9a95856 /web/taginfo.rb | |
parent | c7bad4071f93e6f922c97e0d5d3c3797e3ca00ee (diff) | |
download | taginfo-f3c295352f3ec814e80e204b5e785fc2505e05cd.tar taginfo-f3c295352f3ec814e80e204b5e785fc2505e05cd.tar.gz |
add API documentation functions and start documenting the API
Diffstat (limited to 'web/taginfo.rb')
-rwxr-xr-x | web/taginfo.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/web/taginfo.rb b/web/taginfo.rb index a1040ff..af9e4de 100755 --- a/web/taginfo.rb +++ b/web/taginfo.rb @@ -40,6 +40,7 @@ require 'lib/language.rb' require 'lib/sql.rb' require 'lib/sources.rb' require 'lib/reports.rb' +require 'lib/apidoc.rb' #------------------------------------------------------------------------------ @@ -279,6 +280,14 @@ class Taginfo < Sinatra::Base #-------------------------------------------------------------------------- + get '/apidoc' do + @title = 'API Documentation' + @breadcrumbs << @title + erb :apidoc + end + + #-------------------------------------------------------------------------- + load 'lib/instance.rb' load 'lib/api/db.rb' load 'lib/api/wiki.rb' |