Initial commit

This commit is contained in:
Krisztu
2026-02-25 09:16:11 +01:00
commit 848042b26a
15 changed files with 9421 additions and 0 deletions

14
services/api.ts Normal file
View File

@@ -0,0 +1,14 @@
export const apiService = {
getUsers: async () => {
const res = await fetch('https://jsonplaceholder.typicode.com/users');
return res.json();
},
getPosts: async () => {
const res = await fetch('https://jsonplaceholder.typicode.com/posts');
return res.json();
},
getTodos: async () => {
const res = await fetch('https://jsonplaceholder.typicode.com/todos');
return res.json();
},
};