File tree 1 file changed +3
-3
lines changed
src/Admin/Resources/templates/forms
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 26
26
<div class =" card-content" x-data =" checkApi" >
27
27
<div class =" content" x-init =" check" >
28
28
<div >
29
- <apan class =" tag is-info" >GET</apan > {{ app .request .getSchemeAndHttpHost () }}{{ path(' public_api_form' , { ' hash' : formEntity .hash }) }}
29
+ <apan class =" tag is-info" >GET</apan > {{ app .request .getHttpHost () }}{{ path(' public_api_form' , { ' hash' : formEntity .hash }) }}
30
30
</div >
31
31
<div x-show =" loading" >
32
32
<div class =" mt-5 is-flex is-justify-content-center is-align-items-center" >
40
40
<pre x-text =" getResponseExample" ></pre >
41
41
</div >
42
42
<div class =" mt-6" >
43
- <apan class =" tag is-success" >POST</apan > {{ app .request .getSchemeAndHttpHost () }}{{ path(' public_api_form' , { ' hash' : formEntity .hash }) }}
43
+ <span class =" tag is-success" >POST</span > {{ app .request .getHttpHost () }}{{ path(' public_api_form' , { ' hash' : formEntity .hash }) }}
44
44
</div >
45
45
<h6 class =" mt-5" >Body</h6 >
46
46
<div style =" overflow-y: auto; max-height: 500px;" >
60
60
postRequestExample: ' ' ,
61
61
62
62
async check () {
63
- const response = await fetch (' {{ app.request.getSchemeAndHttpHost () }}{{ path(' public_api_form' , { ' hash' : formEntity.hash }) }}' );
63
+ const response = await fetch (' // {{ app.request.getHttpHost () }}{{ path(' public_api_form' , { ' hash' : formEntity.hash }) }}' );
64
64
this .response = await response .json ();
65
65
this .getResponseExample = JSON .stringify (this .response , null , 2 );
66
66
const postRequest = {};
You can’t perform that action at this time.
0 commit comments