mirror of
https://github.com/YACReader/yacreader
synced 2025-05-27 19:00:29 -04:00
Server: Check for v2 api before webui
This commit is contained in:
parent
f9c07707f3
commit
0533d5d9a3
@ -159,11 +159,10 @@ void RequestMapper::service(HttpRequest &request, HttpResponse &response)
|
||||
QLOG_TRACE() << "RequestMapper: path=" << path.data();
|
||||
QLOG_TRACE() << "X-Request-Id: " << request.getHeader("x-request-id");
|
||||
|
||||
// Browsers ask for text/html
|
||||
if (path.startsWith("/webui")) {
|
||||
serviceWebUI(request, response);
|
||||
} else if (path.startsWith("/v2")) {
|
||||
if (path.startsWith("/v2")) {
|
||||
serviceV2(request, response);
|
||||
} else if (path.startsWith("/webui")) {
|
||||
serviceWebUI(request, response);
|
||||
} else {
|
||||
serviceV1(request, response);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user