Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- DashboardPage --------------------------
- const DashboardPage = () => {
- useEffect(()=>{
- getOk();
- },[])
- let getOk = async ()=>{
- try {
- const res2 = await fetch('/api/elo', {
- method: 'GET',
- headers: {
- 'Accept': 'application/json',
- }
- });
- --- Coś tam dalej ---
- --- Routes --------------------------
- router.get('/api/elo', async (req, res)=>{
- const {access}=req.cookies;
- console.log({access})
- })
- --- Coś tam dalej ---
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement