Introducing endpoint for stats

This endpoint can be queried on a daily basis to retrieve cloud usage  stats. For assets and comments we take into considerations only those who belong to public projects.
This commit is contained in:
2017-03-17 09:40:50 +01:00
parent 59ffebd33e
commit e09c73ec39
3 changed files with 110 additions and 1 deletions

View File

@@ -49,7 +49,11 @@ class CloudExtension(PillarExtension):
:rtype: list of flask.Blueprint objects.
"""
from . import routes
return [routes.blueprint]
import cloud.stats.routes
return [
routes.blueprint,
cloud.stats.routes.blueprint,
]
@property
def template_path(self):