diff --git a/src/pages/Test.jsx b/src/pages/Test.jsx index 62de5cc..9fb7ac4 100644 --- a/src/pages/Test.jsx +++ b/src/pages/Test.jsx @@ -1,22 +1,27 @@ import Menu from "../components/ui/Menu"; -import { postGameStatisticsData, postGameStatisticsDataBackend } from "../services/WordpressFetchData"; +import { postGameStatisticsData } from "../services/WordpressFetchData"; import { useLanguage } from "../hooks/useLanguage"; import { useEffect } from "react"; export default function Test() { const { language } = useLanguage(); - function postStatistics() { - postGameStatisticsDataBackend(); + function testPost() { + const requestDataExample = { + user_locale: "DE", + user_country: "France", + level_post_id: 43, + level_score: 1, + level_completion_time: 800, + }; + postGameStatisticsData(requestDataExample); } return (
- {/* */}
- - {/* */} +