Добавление общих складов и удаление пустых ни разу не использованных общих складов
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
// api.js
|
||||
export async function apiRequest(url, payload = {}, method = 'POST') {
|
||||
const finalUrl = new URL(url, window.location.origin).toString();
|
||||
|
||||
const res = await fetch(finalUrl, {
|
||||
const res = await fetch(url, {
|
||||
method,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
Reference in New Issue
Block a user