Creating admin pages, new brand API endpoint
This commit is contained in:
7
software/src/data/api/brandApi.ts
Normal file
7
software/src/data/api/brandApi.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import axios from "axios";
|
||||
|
||||
let BASE_URL = "http://localhost:3000/brands"
|
||||
|
||||
export async function getAllBrands() {
|
||||
return await axios.get(BASE_URL)
|
||||
}
|
||||
Reference in New Issue
Block a user