Skip to content
Snippets Groups Projects
Commit 9b85da5f authored by Nikolay Stanchev's avatar Nikolay Stanchev
Browse files

Updated routing in the pyramid configuration

parent 9282951b
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
from pyramid.config import Configurator from pyramid.config import Configurator
from pyramid.settings import asbool from pyramid.settings import asbool
from clmcservice.views import AggregatorConfig, AggregatorController
from clmcservice.utilities import RUNNING_FLAG, MALFORMED_FLAG from clmcservice.utilities import RUNNING_FLAG, MALFORMED_FLAG
...@@ -45,12 +44,12 @@ def main(global_config, **settings): ...@@ -45,12 +44,12 @@ def main(global_config, **settings):
config = Configurator(settings=settings) config = Configurator(settings=settings)
config.add_route('aggregator_config', '/aggregator/config') config.add_route('aggregator_config', '/aggregator/config')
config.add_view(AggregatorConfig, attr='get', request_method='GET') config.add_view('clmcservice.views.AggregatorConfig', attr='get', request_method='GET')
config.add_view(AggregatorConfig, attr='put', request_method='PUT') config.add_view('clmcservice.views.AggregatorConfig', attr='put', request_method='PUT')
config.add_route('aggregator_controller', '/aggregator/control') config.add_route('aggregator_controller', '/aggregator/control')
config.add_view(AggregatorController, attr='get', request_method='GET') config.add_view('clmcservice.views.AggregatorController', attr='get', request_method='GET')
config.add_view(AggregatorController, attr='put', request_method='PUT') config.add_view('clmcservice.views.AggregatorController', attr='put', request_method='PUT')
config.scan() config.scan()
return config.make_wsgi_app() return config.make_wsgi_app()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment