mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-04-24 13:05:51 +00:00
fix: Only apply supervisor api authentication after healthcheck entry
Change-type: patch Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
ec87d26be1
commit
707ddb5f45
@ -95,7 +95,6 @@ export class SupervisorAPI {
|
||||
|
||||
this.api.disable('x-powered-by');
|
||||
this.api.use(expressLogger);
|
||||
this.api.use(authenticate(this.config));
|
||||
|
||||
this.api.get('/v1/healthy', async (_req, res) => {
|
||||
try {
|
||||
@ -109,6 +108,8 @@ export class SupervisorAPI {
|
||||
}
|
||||
});
|
||||
|
||||
this.api.use(authenticate(this.config));
|
||||
|
||||
this.api.get('/ping', (_req, res) => res.send('OK'));
|
||||
|
||||
this.api.post('/v1/blink', (_req, res) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user