Update routes to reflect daemon changes

This commit is contained in:
Dane Everitt 2016-10-04 21:38:32 -04:00
parent 9c7b753576
commit 8330e26b39
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 6 additions and 5 deletions

View file

@ -172,11 +172,11 @@ class ServerController extends Controller
$download->token = (string) Uuid::generate(4);
$download->server = $server->uuid;
$download->path = str_replace('../', '', $file);
$download->path = $file;
$download->save();
return redirect( $node->scheme . '://' . $node->fqdn . ':' . $node->daemonListen . '/server/download/' . $download->token);
return redirect( $node->scheme . '://' . $node->fqdn . ':' . $node->daemonListen . '/server/file/download/' . $download->token);
}