kopia lustrzana https://github.com/bugout-dev/moonstream
commit
28fbb237ee
|
@ -5,7 +5,7 @@ const API_URL = process.env.NEXT_PUBLIC_MOONSTREAM_API_URL;
|
||||||
export const createDashboard = (data) => {
|
export const createDashboard = (data) => {
|
||||||
return http({
|
return http({
|
||||||
method: "POST",
|
method: "POST",
|
||||||
url: `${API_URL}/dashboards`,
|
url: `${API_URL}/dashboards/`,
|
||||||
data,
|
data,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -13,7 +13,7 @@ export const createDashboard = (data) => {
|
||||||
export const getDashboardsList = () => {
|
export const getDashboardsList = () => {
|
||||||
return http({
|
return http({
|
||||||
method: "GET",
|
method: "GET",
|
||||||
url: `${API_URL}/dashboards`,
|
url: `${API_URL}/dashboards/`,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue