mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-10 02:42:43 +00:00
Simplify API call url
This commit is contained in:
@@ -36,7 +36,7 @@ const printCurrentBrew = ()=>{
|
|||||||
|
|
||||||
const fetchThemeBundle = async (obj, renderer, theme) => {
|
const fetchThemeBundle = async (obj, renderer, theme) => {
|
||||||
const res = await request
|
const res = await request
|
||||||
.get(`${window.location.protocol}//${window.location.host}/api/theme/${renderer}/${theme}`)
|
.get(`/api/theme/${renderer}/${theme}`)
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
obj.setState({ error: err });
|
obj.setState({ error: err });
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user