0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

Simplify API call url

This commit is contained in:
Trevor Buckner
2024-07-28 16:47:16 -04:00
parent 8aa88a2e45
commit e0425ec6c0

View File

@@ -36,7 +36,7 @@ const printCurrentBrew = ()=>{
const fetchThemeBundle = async (obj, renderer, theme) => {
const res = await request
.get(`${window.location.protocol}//${window.location.host}/api/theme/${renderer}/${theme}`)
.get(`/api/theme/${renderer}/${theme}`)
.catch((err) => {
obj.setState({ error: err });
});