Skip to content

Commit

Permalink
fix: configuration page broken
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain committed Jul 22, 2024
1 parent 0f60471 commit 4a7218e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/controllers/configuration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export function route(hono: THono) {
if (!settingsTypes.includes(type as SettingType)) {
return c.text('Not Found:' + type, 404);
}
const schemaUrl = `${c.origin}static/json-schemas/${type}`;
const schemaUrl = `${c.origin}/static/json-schemas/${type}`;

let data = null;

Expand All @@ -162,7 +162,7 @@ export function route(hono: THono) {
window.starting_value = ${raw(JSON.stringify(data ?? {}))};
window.submit_url =
'${c.origin}configuration/${id}/${type}?token=${token}';
'${c.origin}/configuration/${id}/${type}?token=${token}';
window._options = {
schema: defaultSchema,
startval: window.starting_value,
Expand Down

0 comments on commit 4a7218e

Please sign in to comment.