mirror of
https://github.com/yude-jp/yude.jp
synced 2025-10-14 04:08:36 +09:00
Remove /api/PlayerName
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
import { useRouter } from 'next/router'
|
||||
|
||||
// Data fetching
|
||||
import Players from '../../components/Minecraft/Players'
|
||||
import useSwr from 'swr'
|
||||
const fetcher = (url) => fetch(url).then((res) => res.json())
|
||||
|
||||
|
@@ -16,7 +16,7 @@ export default function UUID() {
|
||||
const router = useRouter()
|
||||
const { uuid } = router.query
|
||||
const { data, error } = useSwr(
|
||||
uuid ? `/api/PlayerName/${uuid}` : null,
|
||||
uuid ? `https://api.ashcon.app/mojang/v2/user/${uuid}` : null,
|
||||
fetcher
|
||||
)
|
||||
if (error) {
|
||||
|
Reference in New Issue
Block a user