insert costumer registration, remove doppel point

This commit is contained in:
Marko Oldenburg 2019-09-26 09:48:05 +02:00
parent 506b804f42
commit 410cb53b52

View File

@ -179,7 +179,7 @@ my %paths = (
'powerwallsstop' => 'sitemaster/stop', 'powerwallsstop' => 'sitemaster/stop',
'powerwallsrun' => 'sitemaster/run', 'powerwallsrun' => 'sitemaster/run',
'powerwalls' => 'powerwalls', 'powerwalls' => 'powerwalls',
# 'registration' => 'customer/registration', 'registration' => 'customer/registration',
'status' => 'status', 'status' => 'status',
'login' => 'login/Basic', 'login' => 'login/Basic',
'gridstatus' => 'system_status/grid_status', 'gridstatus' => 'system_status/grid_status',
@ -1039,7 +1039,7 @@ sub CreateUri($$) {
my $header; my $header;
my $data; my $data;
$uri = $host . ':' . '/api/' . $paths{$path}; $uri = $host . '/api/' . $paths{$path};
if ( $path eq 'sitemasterrun' ) { if ( $path eq 'sitemasterrun' ) {
$header = 'Authorization: Bearer' . $hash->{TOKEN}; $header = 'Authorization: Bearer' . $hash->{TOKEN};