mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-11 15:32:47 +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) ->
|
app.post('/update', (req, res) ->
|
||||||
|
hakiApp.update((error) ->
|
||||||
|
if error
|
||||||
|
res.send(500)
|
||||||
|
else
|
||||||
|
res.send(204)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
app.listen(80)
|
app.listen(80)
|
||||||
|
Loading…
Reference in New Issue
Block a user