Skip to content
This repository was archived by the owner on Oct 9, 2024. It is now read-only.

Commit 6f2bc13

Browse files
committed
fix(api): 🐛 change funtion parameter name
1 parent 25a052d commit 6f2bc13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

composables/useBackend.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ export const useBackend = () => {
55
/**
66
* Request to Backend.
77
* @param method HTTP method.
8-
* @param url URL.
8+
* @param path Path.
99
* @param data Data.
1010
*/
11-
async function request(method: HTTPMethod, url: string, data: object = {}) {
12-
return await $fetch(useRuntimeConfig().public.backend.url + url, {
11+
async function request(method: HTTPMethod, path: string, data: object = {}) {
12+
return await $fetch(useRuntimeConfig().public.backend.url + path, {
1313
method: method,
1414
headers: {
1515
"Authorization": useRuntimeConfig().public.backend.authorization,

0 commit comments

Comments
 (0)