Commit 2b4af16d authored by isstuev's avatar isstuev

fix swagger

parent b74df3e5
...@@ -57,6 +57,9 @@ const SwaggerUI = () => { ...@@ -57,6 +57,9 @@ const SwaggerUI = () => {
const reqInterceptor = React.useCallback((req: any) => { const reqInterceptor = React.useCallback((req: any) => {
if (!req.loadSpec) { if (!req.loadSpec) {
req.url = req.url.replace(DEFAULT_SERVER, appConfig.api.host); req.url = req.url.replace(DEFAULT_SERVER, appConfig.api.host);
const url = new URL(req.url);
url.protocol = 'https';
req.url = url;
} }
return req; return req;
}, []); }, []);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment