file.js 584 Bytes
var express = require('express'); 

exports = module.exports = function(IoC,policies){
	var app = this;
	var router= express.Router();
    var controller = IoC.create('controllers/file');
  
	router.get(
		'/*', 
		controller.get
	);

	router.post(
		'/*', 
		controller.post
	); 

	router.put(
		'/*', 
		controller.put
	); 

	router.patch(
		'/*', 
		controller.patch
	);

	router.head(
		'/*', 
		controller.head
	);
	
	router.delete(
		'/*', 
		controller.delete
	);  

	app.use('/file_api', router);
};

exports['@require']=['$container','policies'];
exports['@singleton']=true;