This commit is contained in:
Patryk Koreń
2026-07-02 23:55:40 +02:00
parent 04e34d15b5
commit e7ec832f5b
53 changed files with 9985 additions and 17 deletions

19
front/src/pages/Video.tsx Normal file
View File

@@ -0,0 +1,19 @@
import { apiFetch } from "@/api/auth";
import { useEffect, useState } from "react";
export function Video() {
const [video, setVideo] = useState<string | null>(null);
const getVideo = async () => {
const res = await apiFetch("/protected/video");
const txt = await res.text()
setVideo(txt)
}
useEffect(() => {
getVideo()
}, [])
return (
<div className="flex flex-1 flex-col gap-4 py-16">
{video}
</div>
);
}