CategoryStore, API calls
This commit is contained in:
1 parent
fbbfcdf365
commit
ddc96bac13
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