pro refresh endpoint nevyzadovat authtoken
This commit is contained in:
parent
a3dfdb17e8
commit
58bb5f4e7d
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user