Explorar el Código

remove last fix & add a better (#700)

Clément hace 1 año
padre
commit
4317c2326b
Se han modificado 2 ficheros con 1 adiciones y 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;