Merge pull request #317 from TeamPiped/frontend-redirect

Make the api url redirect to the instance's frontend.
This commit is contained in:
Kavin 2022-07-19 22:07:28 +05:30 committed by GitHub
commit 805270dd00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -345,7 +345,7 @@ public class ServerLauncher extends MultithreadedHttpServerLauncher {
} catch (Exception e) {
return getErrorResponse(e, request.getPath());
}
}));
})).map(GET, "/", AsyncServlet.ofBlocking(executor, request -> HttpResponse.redirect302(Constants.FRONTEND_URL)));
return new CustomServletDecorator(router);
}