andre 3 år sedan
förälder
incheckning
52e16f77ed
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      api/config.php
  2. 1 1
      api/cwp7/Admin.php

+ 1 - 1
api/config.php

@@ -3,7 +3,7 @@
 // Config //
 ////////////
 
-$cwp7URL = 'https://hosting.seecure.ch:2304/';
+$cwp7URL = 'https://hosting.seecure.ch:2304';
 $cwp7Token = 'XtlJyuGnHANEez2VEiVFpAglX8XoixsOVQkhobiPgZmvcS7fM8NRagmBzBMHVlBsNr4hck';
 
 ?>

+ 1 - 1
api/cwp7/Admin.php

@@ -320,7 +320,7 @@ class cwp7_Admin {
         $data['key'] = $this->cwp7Token;
         $data['action'] = $action;
         $ch = curl_init();
-        curl_setopt($ch, CURLOPT_URL, $this->cwp7URL . 'v1/' . $endpoint);
+        curl_setopt($ch, CURLOPT_URL, $this->cwp7URL . '/v1/' . $endpoint);
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
         curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
         curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);