ZRColaWS: Stop setting API server in Swagger UI

Host where the webservice is listening is not the same as host where
clients connect to. Unless localhost, but that limits use of Swagger UI
for internal use only.
And, not to forget: reverse proxy that will typically run in front of
ZRCola web service and will publish it with who knows what public URL.

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2022-09-19 16:11:08 +02:00
parent 004958f464
commit f6d0323485

View File

@ -59,9 +59,7 @@ public:
.setContactUrl("https://zrcola.zrc-sazu.si/en/")
.setLicenseName("GNU General Public License, Version 3")
.setLicenseUrl("https://www.gnu.org/licenses/gpl-3.0.en.html")
.addServer(oatpp::String("http://") + m_address.host + ":" + std::to_string(m_address.port), "API Server");
.setLicenseUrl("https://www.gnu.org/licenses/gpl-3.0.en.html");
return builder.build();
}());