Skip to content

Commit

Permalink
feat(server): add simple health endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
setchy committed Oct 2, 2023
1 parent a6ccbe3 commit d9f52d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const app = connect();
app.use(
bodyParser.json({
deflate: true,
limit: "1mb",
limit: "1mb"
})
);
app.use(compression());
Expand All @@ -30,7 +30,7 @@ const gitClone = (repoUrl) => {
console.log("Cloning", repoUrl, "to", tempDir);
const result = spawnSync("git", ["clone", repoUrl, "--depth", "1", tempDir], {
encoding: "utf-8",
shell: false,
shell: false
});
if (result.status !== 0 || result.error) {
console.log(result.error);
Expand All @@ -55,7 +55,7 @@ const parseQueryString = (q, body, options = {}) => {
"projectVersion",
"parentUUID",
"serverUrl",
"apiKey",
"apiKey"
];

for (const param of queryParams) {
Expand Down

0 comments on commit d9f52d6

Please sign in to comment.