diff --git a/docs/Makefile b/docs/Makefile index f6f1dd3..7230ca7 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -1,3 +1,3 @@ html: - ronn -5 ./httpbin.1.md --pipe > ../httpbin/static/index.html \ No newline at end of file + ronn -5 ./httpbin.1.md --pipe > ../httpbin/templates/httpbin.1.html \ No newline at end of file diff --git a/docs/httpbin.1.md b/docs/httpbin.1.md index b1b6431..fd2e0c9 100644 --- a/docs/httpbin.1.md +++ b/docs/httpbin.1.md @@ -1,2 +1,19 @@ -# HttpBin: PostBin++ +httpbin(1): HTTP Client Testing Service +======================================= + +## SYNOPSIS + + +## DESCRIPTION + +## CONFIGURATION + + +## EXAMPLES + +## AUTHORS + +## SEE ALSO + + diff --git a/httpbin/core.py b/httpbin/core.py index 16da970..285de0e 100644 --- a/httpbin/core.py +++ b/httpbin/core.py @@ -19,10 +19,9 @@ def to_json(*args, **kwargs): data = dict(*args, **kwargs) return json.dumps(data) - @app.route('/') -def hello(): - return to_json(hello='world') +def view_help(): + render_template('httpbin.1.html') @app.route('/headers') diff --git a/httpbin/static/index.html b/httpbin/templates/httpbin.1.html similarity index 82% rename from httpbin/static/index.html rename to httpbin/templates/httpbin.1.html index c65e519..1f8ecdc 100644 --- a/httpbin/static/index.html +++ b/httpbin/templates/httpbin.1.html @@ -3,7 +3,7 @@
-