0
0
mirror of https://github.com/yude-jp/yude.jp synced 2025-10-13 11:48:37 +09:00

Remove /api/PlayerName

This commit is contained in:
2021-12-11 06:42:23 +09:00
parent 33dbec3339
commit a095e20b6b
4 changed files with 2 additions and 26 deletions

View File

@@ -9,7 +9,7 @@ const fetcher = (url) => fetch(url).then((res) => res.json())
function App (props) {
const uuid = props;
const { data, error } = useSwr(
uuid.uuid ? `/api/PlayerName/${uuid.uuid}` : null,
uuid.uuid ? `https://api.ashcon.app/mojang/v2/user/${uuid.uuid}` : null,
fetcher
)