CategoryStore, API calls
This commit is contained in:
1 parent
9ee344f45f
commit
7b245da959
11 files changed
+83
-52
No files matched your search
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user