File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,14 @@ const client = useFunctions();
10
10
11
11
const endpoint = ref (' world' );
12
12
13
- const message = ref ( ' ' );
13
+ const message = ref < object >({} );
14
14
15
15
const response = ref ();
16
16
17
17
watch (
18
18
endpoint ,
19
19
async (endpoint ) => {
20
- client .raw .get (' /api/' + endpoint ).then ((resp ) => {
20
+ client .raw .get (` /api/${ endpoint } ` ).then ((resp ) => {
21
21
response .value = resp ;
22
22
message .value = resp .data ;
23
23
});
32
32
<h1 text-2xl font-bold pb4 border =" b-1 base" >Vite Plugin Cloudflare Functions</h1 >
33
33
<div flex justify-start items-center >
34
34
<span mr2 text-base-500 >Endpoint:</span ><span mr1 font-bold >/api/</span
35
- ><c-input type =" text" id =" endpoint" v-model =" endpoint" name = " " class =" font-bold"
35
+ ><c-input type =" text" id =" endpoint" v-model =" endpoint" class =" font-bold"
36
36
><template #label ></template
37
37
></c-input >
38
38
</div >
You can’t perform that action at this time.
0 commit comments