mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-12 15:52:39 +10:00
feat: refactor news and migrate rest of useFetch to $dropFetch
This commit is contained in:
@ -176,10 +176,8 @@ const gameId = route.params.id.toString();
|
||||
|
||||
const user = useUser();
|
||||
|
||||
const headers = useRequestHeaders(["cookie"]);
|
||||
const game = await $dropFetch<Game & { versions: GameVersion[] }>(
|
||||
`/api/v1/games/${gameId}`,
|
||||
{ headers }
|
||||
`/api/v1/games/${gameId}`
|
||||
);
|
||||
|
||||
// Preview description (first 30 lines)
|
||||
|
||||
Reference in New Issue
Block a user