diff frontend/mfrontend/__init__.py @ 11:69ecfe51d585

DodaƂem prosty prototyp API
author Michał Rudowicz <michal.rudowicz@fl9.eu>
date Mon, 07 Mar 2011 11:04:11 +0100
parents 9a0a9fa7f91d
children
line wrap: on
line diff
--- a/frontend/mfrontend/__init__.py	Mon Mar 07 10:47:48 2011 +0100
+++ b/frontend/mfrontend/__init__.py	Mon Mar 07 11:04:11 2011 +0100
@@ -5,6 +5,7 @@
 from ConfigParser import SafeConfigParser, NoSectionError
 from mfrontend.views.frontend import frontend
 from mfrontend.views.jobcontrol import jobcontrol
+from mfrontend.views.api import api
 from mfrontend import db, utils
 
 
@@ -24,6 +25,7 @@
 app = flask.Flask(__name__)
 app.register_module(frontend)
 app.register_module(jobcontrol, url_prefix="/jobs")
+app.register_module(api, url_prefix="/api")
 app.config.from_object(__name__)
 app.config.from_envvar('MFRONTEND_SETTINGS', silent=True)