mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-27 08:29:40 +05:00
Merge remote-tracking branch 'origin/feat_player'
This commit is contained in:
parent
bb437fe7ca
commit
25e31a7799
62 changed files with 1508 additions and 701 deletions
16
app/profile/[id]/page.tsx
Normal file
16
app/profile/[id]/page.tsx
Normal file
|
@ -0,0 +1,16 @@
|
|||
import { ProfilePage } from "#/pages/Profile";
|
||||
import { fetchDataViaGet } from "#/api/utils";
|
||||
|
||||
export async function generateMetadata({ params }) {
|
||||
const id:string = params.id;
|
||||
const profile: any = await fetchDataViaGet(`https://api.anixart.tv/profile/${id}`);
|
||||
|
||||
return {
|
||||
title: "Профиль " + profile.profile.login,
|
||||
};
|
||||
}
|
||||
|
||||
export default async function Profile({ params }) {
|
||||
const id: string = params.id;
|
||||
return <ProfilePage id={id} />;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue