Provides a top-10 most viewed datasets.
[ckanext-ga-report.git] / ckanext / ga_report / plugin.py
blob:a/ckanext/ga_report/plugin.py -> blob:b/ckanext/ga_report/plugin.py
--- a/ckanext/ga_report/plugin.py
+++ b/ckanext/ga_report/plugin.py
@@ -18,14 +18,24 @@
 
     def after_map(self, map):
         map.connect(
-            '/data/analytics/',
-            controller='ckanext.ga_report.controller:GaReport',
+            '/data/analytics/publisher',
+            controller='ckanext.ga_report.controller:GaPublisherReport',
             action='index'
         )
         map.connect(
             '/data/analytics/publisher/{id}',
             controller='ckanext.ga_report.controller:GaPublisherReport',
+            action='read'
+        )
+        map.connect(
+            '/data/analytics',
+            controller='ckanext.ga_report.controller:GaReport',
             action='index'
+        )
+        map.connect(
+            '/data/analytics/data_{month}.csv',
+            controller='ckanext.ga_report.controller:GaReport',
+            action='csv'
         )
         return map