You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
416 B
14 lines
416 B
"use strict";
|
|
|
|
module.exports = function(req, res) {
|
|
var options = {
|
|
owner: req.params.owner,
|
|
reponame: req.params.reponame,
|
|
branchName: req.params.branch,
|
|
branch: "/refs/heads/" + req.params.branch,
|
|
rev: req.params.rev,
|
|
file: req.params[0]
|
|
};
|
|
|
|
res.sendfile(req.app.get('releasepath') + "/" + options.owner + "/" + options.reponame + "/" + options.branch + "/" + options.rev + "/" + options.file);
|
|
};
|
|
|