Skip to content
Snippets Groups Projects
Commit 38e6fb85 authored by anonymous's avatar anonymous
Browse files

add api3

parent 4113ba1a
Branches
Tags
No related merge requests found
...@@ -265,6 +265,12 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm ...@@ -265,6 +265,12 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
def before_map(self, map): def before_map(self, map):
# /api ver 3 or none
with SubMapper(map, controller='api', path_prefix='/api{ver:/3|}',
ver='/3') as m:
m.connect('/action/{logic_function}', action='action',
conditions=dict(method=['GET', 'POST']))
map.connect('info_page', '/info_page', map.connect('info_page', '/info_page',
controller='ckanext.odsh.controller:OdshRouteController', action='info_page') controller='ckanext.odsh.controller:OdshRouteController', action='info_page')
map.connect('home', '/', map.connect('home', '/',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment