Skip to content

Commit cfd0e48

Browse files
MytsVmaany
authored andcommitted
Remove unnecessary request method specification
1 parent 269fba1 commit cfd0e48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/(rucio)/rse/queries.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ import { RSEAttributeViewModel, RSEProtocolViewModel, RSEViewModel } from "@/lib
22

33
export async function getRSE(rseName: string): Promise<RSEViewModel> {
44
const url = `${process.env.NEXT_PUBLIC_WEBUI_HOST}/api/feature/get-rse?` + new URLSearchParams({rseName})
5-
const res = await fetch(url, {method: "GET"})
5+
const res = await fetch(url)
66
return await res.json()
77
}
88

99
export async function getProtocols(rseName: string): Promise<RSEProtocolViewModel> {
1010
const url = `${process.env.NEXT_PUBLIC_WEBUI_HOST}/api/feature/get-rse-protocols?` + new URLSearchParams({rseName})
11-
const res = await fetch(url, {method: "GET"})
11+
const res = await fetch(url)
1212
return await res.json()
1313
}
1414

1515
export async function getAttributes(rseName:string): Promise<RSEAttributeViewModel> {
1616
const url = `${process.env.NEXT_PUBLIC_WEBUI_HOST}/api/feature/get-rse-attributes?` + new URLSearchParams({rseName})
17-
const res = await fetch(url, {method: "GET"})
17+
const res = await fetch(url)
1818
return await res.json()
1919
}

0 commit comments

Comments
 (0)