Commit b0836c89 authored by joansp's avatar joansp
Browse files

udpate

parent a89d958a
......@@ -157,7 +157,7 @@ sub _check_has_clones {
sub _check_free_memory{
die "No free memory" if !( (freemem() / 1024) < 500000 );
die "No free memory" if ( (freemem() / 1024) < 500000 );
}
......
......@@ -82,6 +82,10 @@
$scope.res = res;
});
$http.get('/pingbackend.json').then(function(response) {
$scope.pingbackend = response.data;
});
$scope.shutdown = function(machineId){
var toGet = '/machine/shutdown/'+machineId+'.json';
$http.get(toGet);
......
......@@ -173,6 +173,11 @@ get '/list_lxc_templates.json' => sub {
$c->render(json => $RAVADA->list_lxc_templates);
};
get '/pingbackend.json' => sub {
my $c = shift;
$c->render(json => $RAVADA->ping_backend);
};
# machine commands
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment