Explorar o código

remove last fix & add a better (#700)

Clément hai 1 ano
pai
achega
4317c2326b
Modificáronse 2 ficheiros con 1 adicións e 2 borrados
  1. 1 1
      camel/Output/OutputEndpointData.php
  2. 0 1
      resources/js/tryitout.js

+ 1 - 1
camel/Output/OutputEndpointData.php

@@ -144,7 +144,7 @@ class OutputEndpointData extends BaseDTO
 
     public function endpointId(): string
     {
-        return $this->httpMethods[0] . str_replace(['/', '?', '{', '}', ':', '\\', '+', '|'], '-', $this->uri);
+        return $this->httpMethods[0] . str_replace(['/', '?', '{', '}', ':', '\\', '+', '|', '.'], '-', $this->uri);
     }
 
     public function name(): string

+ 0 - 1
resources/js/tryitout.js

@@ -37,7 +37,6 @@ function getCookie(name) {
 }
 
 function tryItOut(endpointId) {
-    endpointId = endpointId.replaceAll('.', '\\.');
     document.querySelector(`#btn-tryout-${endpointId}`).hidden = true;
     document.querySelector(`#btn-canceltryout-${endpointId}`).hidden = false;
     const executeBtn = document.querySelector(`#btn-executetryout-${endpointId}`).hidden = false;