Fix order view

This commit is contained in:
2024-09-20 15:30:40 +02:00
parent 718dbe30b7
commit 89e91c3213
7 changed files with 34 additions and 20 deletions

View 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)
}