mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-05 15:52:55 +01:00
apply correct media prefixes
This commit is contained in:
1 parent
3c92ab3a19
commit
cca46957bc
4 files changed
+21
-7
No files matched your search
@@ -12,5 +12,7 @@ export { getStaticPaths } from "./[id].json";
|
||||
*/
|
||||
export async function GET({ params }: APIContext<never, { id: string }>) {
|
||||
const avatar = await api.avatar(params.id);
|
||||
return await imageProxy(avatar.profile_avatar!.avatar);
|
||||
return await imageProxy(
|
||||
api.mediaPrefix(avatar.profile_avatar!.avatar!.value),
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user