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.
24 lines
564 B
24 lines
564 B
8 years ago
|
"use strict";
|
||
|
|
||
8 years ago
|
import * as _ from "underscore";
|
||
8 years ago
|
import { build } from "../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 = {
|
||
|
...req.body,
|
||
8 years ago
|
app: req.app,
|
||
|
url: `https://pos-github.payonline.ru/${req.body.owner}/${req.body.reponame}`,
|
||
8 years ago
|
};
|
||
11 years ago
|
|
||
8 years ago
|
build(options, (err, result) => {
|
||
8 years ago
|
console.log("Done processing manual request");
|
||
8 years ago
|
console.log(`Error: ${err}`);
|
||
|
res.render("manual-done", {
|
||
|
err,
|
||
8 years ago
|
result,
|
||
8 years ago
|
});
|
||
8 years ago
|
});
|
||
8 years ago
|
};
|