Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
AitorAlgorta committed Feb 14, 2024
1 parent d719120 commit e1f4894
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions backend/components/schema-registry-manager/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,19 +237,19 @@ app.get('/schemas.lastMessage', (req: ExpressRequest, res: ExpressResponse) => {
async function startHealthcheck() {
const server = http.createServer((req: any, res: any) => {
if (req.url === '/actuator/health' && req.method === 'GET') {
const response = { status: "UP" };
const response = {status: 'UP'};
const jsonResponse = JSON.stringify(response);
res.writeHead(200, { 'Content-Type': 'application/json' });

res.writeHead(200, {'Content-Type': 'application/json'});
res.end(jsonResponse);
} else {
res.writeHead(404, { 'Content-Type': 'text/plain' });
res.writeHead(404, {'Content-Type': 'text/plain'});
res.end('Not Found');
}
});

server.listen(80, () => {
console.log("Health-check started");
console.log('Health-check started');
});
}

Expand Down

0 comments on commit e1f4894

Please sign in to comment.