Skip to content

Commit 25beab3

Browse files
committed
Adds an endpoint to get a default proxy
1 parent 86a4a86 commit 25beab3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

web/backend/src/Server.ts

+6
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ app.use(express.urlencoded({ extended: true }));
6969
// }
7070
// });
7171

72+
// This endpoint allows anyone to get a "default" proxy. Clients can still use
73+
// the proxy of their choice thought.
74+
app.get('/api/config/proxy', (req, res) => {
75+
res.status(200).send(process.env.FRONT_END_URL)
76+
});
77+
7278
const usersDB = lmdb.open<'admin' | 'operator', number>({
7379
path: `${process.env.DB_PATH}dvoting-users`,
7480
});

0 commit comments

Comments
 (0)