mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-19 05:37:53 +00:00
Implemented the update repo endpoint
This commit is contained in:
parent
f5760ffd09
commit
cb434292bf
@ -70,8 +70,12 @@ app.post('/blink', (req, res) ->
|
||||
)
|
||||
|
||||
app.post('/update', (req, res) ->
|
||||
|
||||
|
||||
hakiApp.update((error) ->
|
||||
if error
|
||||
res.send(500)
|
||||
else
|
||||
res.send(204)
|
||||
)
|
||||
)
|
||||
|
||||
app.listen(80)
|
||||
|
Loading…
Reference in New Issue
Block a user