pro refresh endpoint nevyzadovat authtoken

This commit is contained in:
Batmanisko 2025-07-31 23:41:51 +02:00
parent a3dfdb17e8
commit 58bb5f4e7d
No known key found for this signature in database

View File

@ -96,6 +96,9 @@ app.get("/api/qr", (req, res) => {
// ---------------------------------------------------- // ----------------------------------------------------
// Přeskočení auth pro refresh dat xd
app.use("/api/food/refresh", foodRoutes);
/** Middleware ověřující JWT token */ /** Middleware ověřující JWT token */
app.use("/api/", (req, res, next) => { app.use("/api/", (req, res, next) => {
if (HTTP_REMOTE_USER_ENABLED) { if (HTTP_REMOTE_USER_ENABLED) {