mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 07:25:48 +01:00
🐛 dashdot params on api call
🐛 dashdot params on api call
This commit is contained in:
committed by
Thomas "ajnart" Camlong
parent
646bcf0a28
commit
f7c976e6e7
@@ -98,7 +98,7 @@ const useJson = (targetUrl: string, url: string) => {
|
|||||||
|
|
||||||
const doRequest = async () => {
|
const doRequest = async () => {
|
||||||
try {
|
try {
|
||||||
const resp = await axios.get(`/api/modules/dashdot?url=${url}&base=${targetUrl}`);
|
const resp = await axios.get('/api/modules/dashdot',{ params: { url, base: targetUrl } });
|
||||||
|
|
||||||
setData(resp.data);
|
setData(resp.data);
|
||||||
// eslint-disable-next-line no-empty
|
// eslint-disable-next-line no-empty
|
||||||
|
|||||||
Reference in New Issue
Block a user