Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar_network/db/routes.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2014-05-08 13:44:00 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2014-05-08 13:44:00 (GMT)
commit03888767cf46f2e6433c1e89b3cee0320fc5012b (patch)
treea8377854bf0269044b3331040682a612d30ceef6 /sugar_network/db/routes.py
parent70c1b1a26a610c082a49bd5fb29e6dca2bf47943 (diff)
Return assets from the /assets API route
Diffstat (limited to 'sugar_network/db/routes.py')
-rw-r--r--sugar_network/db/routes.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sugar_network/db/routes.py b/sugar_network/db/routes.py
index 29507d3..22e3782 100644
--- a/sugar_network/db/routes.py
+++ b/sugar_network/db/routes.py
@@ -172,6 +172,10 @@ class Routes(object):
def blobs(self):
return self.volume.blobs.get(this.request.path[1:])
+ @fallbackroute('GET', ['assets'])
+ def assets(self):
+ return self.volume.blobs.get(this.request.path)
+
@contextmanager
def _post(self, access):
content = this.request.content