forked from izu/student-web-if-development-kit
Use RODA server for dashboard proxy
This commit is contained in:
+1
-1
@@ -130,7 +130,7 @@ function serveRodaDashboardApi() {
|
||||
configureServer(server) {
|
||||
server.middlewares.use(async (req, res, next) => {
|
||||
const requestUrl = new URL(req.url || '/', 'http://localhost');
|
||||
if (requestUrl.pathname !== '/api/dashboard') {
|
||||
if (requestUrl.pathname !== '/api/dashboard' && requestUrl.pathname !== '/groups/RODA/api/dashboard') {
|
||||
next();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user