Fix order view
This commit is contained in:
7
software/src/data/api/orderApi.ts
Normal file
7
software/src/data/api/orderApi.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import axios from "axios"
|
||||
|
||||
const BASE_URL = "http://localhost:3000/orders"
|
||||
|
||||
export async function getUserOrders(userId: number) {
|
||||
return axios.get(BASE_URL + "/" + userId)
|
||||
}
|
||||
Reference in New Issue
Block a user