"use strict";

function save(request, response){
	response.status(201).end();
}

function getById(request, response){
	response.end("<h1>Not Found</h1>");
}

module.exports.save = save;
module.exports.getById = getById;

@@ -12,41 +12,199 @@
 %22;%0A%0A
-function save(request, response)%7B
+var _ = require(%22lodash%22);%0Avar path = require(%22path%22);%0A%0Afunction save(request, response)%7B%0A%0A%09var savedUrl = request.protocol + '://' + request.get('host') + %22/file/%22 + request.files.file.name;
 %0A%09re
@@ -226,16 +226,24 @@
 01).end(
+savedUrl
 );%0A%7D%0A%0Afu
@@ -277,16 +277,18 @@
 ponse)%7B%0A
+%09%0A
 %09respons
@@ -293,32 +293,80 @@
 nse.
+s
 end
-(%22%3Ch1%3ENot Found%3C/h1%3E%22
+File(request.params.id, %7B root: path.join(__dirname, '../uploads') %7D
 );%0A%7D

Return url of asset on save. Implemented get by id functionality.