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.
15 lines
418 B
15 lines
418 B
11 years ago
|
"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.file
|
||
|
};
|
||
|
|
||
|
res.sendfile(req.app.get('releasepath') + "/" + options.owner + "/" + options.reponame + "/" + options.branch + "/" + options.rev + "/" + options.file);
|
||
|
};
|