Last active
December 3, 2017 16:09
-
-
Save juanfvasquez/be8b4cbacf2c99e1264552eabae78045 to your computer and use it in GitHub Desktop.
Route File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const Route = use('Route') | |
const Helpers = use('Helpers') | |
Route.resource('/companies', 'CompanyController') | |
Route.get('/companies/:company', function (request, response) { | |
response.download(Helpers.storagePath('img/companies/' + request.param('company'))) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment