ldap
This commit is contained in:
19
front/src/pages/Video.tsx
Normal file
19
front/src/pages/Video.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user