[copr] master: We want the main page to have 'coprs_ns.coprs_show' endpoint associated (50d610e)

bkabrda at fedoraproject.org bkabrda at fedoraproject.org
Tue Jan 8 13:11:19 UTC 2013


Repository : http://git.fedorahosted.org/cgit/copr.git

On branch  : master

>---------------------------------------------------------------

commit 50d610e9440cda6f5144fcead39ad664f388745a
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Tue Jan 8 14:11:05 2013 +0100

    We want the main page to have 'coprs_ns.coprs_show' endpoint associated


>---------------------------------------------------------------

 coprs_frontend/coprs/__init__.py |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/coprs_frontend/coprs/__init__.py b/coprs_frontend/coprs/__init__.py
index b921968..f2ea8d4 100644
--- a/coprs_frontend/coprs/__init__.py
+++ b/coprs_frontend/coprs/__init__.py
@@ -43,6 +43,4 @@ app.register_blueprint(coprs_ns.coprs_ns)
 app.register_blueprint(misc.misc)
 app.register_blueprint(backend_ns.backend_ns)
 
- at app.route("/")
-def start():
-    return coprs_general.coprs_show()
+app.add_url_rule('/', 'coprs_ns.coprs_show', coprs_general.coprs_show)



More information about the copr-devel mailing list