Commit 7ea74170 authored by isstuev's avatar isstuev

fix swagger url

parent 9b3f999b
...@@ -58,8 +58,8 @@ const SwaggerUI = () => { ...@@ -58,8 +58,8 @@ const SwaggerUI = () => {
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); const url = new URL(req.url);
url.protocol = 'https'; url.protocol = 'https:';
req.url = url; req.url = url.toString();
} }
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