CategoryStore, API calls

This commit is contained in:
2024-09-18 16:21:07 +02:00
parent 9ee344f45f
commit 7b245da959
11 changed files with 83 additions and 52 deletions

View File

@@ -0,0 +1,7 @@
import axios from "axios"
let BASE_URL = "http://localhost:3000/categories"
export async function getAllCategories() {
return await axios.get(BASE_URL)
}