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.
22 lines
581 B
22 lines
581 B
8 years ago
|
"use strict";
|
||
|
|
||
8 years ago
|
import _ = require("underscore");
|
||
|
import builder = require("../lib/builder");
|
||
11 years ago
|
|
||
8 years ago
|
export const get = (req, res) => res.render("manual");
|
||
11 years ago
|
|
||
8 years ago
|
export const post = (req, res) => {
|
||
8 years ago
|
const options = _.extend(req.body, {
|
||
|
"app": req.app,
|
||
|
"url": `https://pos-github.payonline.ru/${req.body.owner}/${req.body.reponame}`
|
||
|
});
|
||
11 years ago
|
|
||
8 years ago
|
builder.build(options, (err, result) => {
|
||
|
console.log("Done processing manual request");
|
||
8 years ago
|
console.log(`Error: ${err}`);
|
||
|
res.render("manual-done", {
|
||
|
err,
|
||
|
result
|
||
|
});
|
||
8 years ago
|
});
|
||
8 years ago
|
};
|