Fix the samples
This commit is contained in:
parent
0d09a72242
commit
e853235e82
|
@ -68,7 +68,7 @@ app.get('/download/:container', function (req, res, next) {
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get('/download/:container/:file', function (req, res, next) {
|
app.get('/download/:container/:file', function (req, res, next) {
|
||||||
handler.download(req, res, function (err, result) {
|
handler.download(req.params.container, req.params.file, res, function (err, result) {
|
||||||
if (err) {
|
if (err) {
|
||||||
res.send(500, err);
|
res.send(500, err);
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,7 +67,7 @@ app.get('/download/:container', function (req, res, next) {
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get('/download/:container/:file', function (req, res, next) {
|
app.get('/download/:container/:file', function (req, res, next) {
|
||||||
handler.download(req, res, function (err, result) {
|
handler.download(req.params.container, req.params.file, res, function (err, result) {
|
||||||
if (err) {
|
if (err) {
|
||||||
res.send(500, err);
|
res.send(500, err);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue