mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-05-09 11:01:45 +00:00
fix: atualiza protecao das rotas do dashboard
This commit is contained in:
40
proxy.ts
40
proxy.ts
@@ -3,17 +3,19 @@ import { auth } from "@/shared/lib/auth/config";
|
|||||||
|
|
||||||
// Rotas protegidas que requerem autenticação
|
// Rotas protegidas que requerem autenticação
|
||||||
const PROTECTED_ROUTES = [
|
const PROTECTED_ROUTES = [
|
||||||
"/ajustes",
|
"/settings",
|
||||||
"/anotacoes",
|
"/notes",
|
||||||
"/calendario",
|
"/calendar",
|
||||||
"/cartoes",
|
"/cards",
|
||||||
"/categorias",
|
"/categories",
|
||||||
"/contas",
|
"/accounts",
|
||||||
"/dashboard",
|
"/dashboard",
|
||||||
"/insights",
|
"/insights",
|
||||||
"/lancamentos",
|
"/transactions",
|
||||||
"/orcamentos",
|
"/budgets",
|
||||||
"/pagadores",
|
"/payers",
|
||||||
|
"/inbox",
|
||||||
|
"/reports",
|
||||||
];
|
];
|
||||||
|
|
||||||
// Rotas públicas (não requerem autenticação)
|
// Rotas públicas (não requerem autenticação)
|
||||||
@@ -65,17 +67,19 @@ export const config = {
|
|||||||
// Apply middleware to protected and auth routes
|
// Apply middleware to protected and auth routes
|
||||||
matcher: [
|
matcher: [
|
||||||
"/",
|
"/",
|
||||||
"/ajustes/:path*",
|
"/settings/:path*",
|
||||||
"/anotacoes/:path*",
|
"/notes/:path*",
|
||||||
"/calendario/:path*",
|
"/calendar/:path*",
|
||||||
"/cartoes/:path*",
|
"/cards/:path*",
|
||||||
"/categorias/:path*",
|
"/categories/:path*",
|
||||||
"/contas/:path*",
|
"/accounts/:path*",
|
||||||
"/dashboard/:path*",
|
"/dashboard/:path*",
|
||||||
"/insights/:path*",
|
"/insights/:path*",
|
||||||
"/lancamentos/:path*",
|
"/transactions/:path*",
|
||||||
"/orcamentos/:path*",
|
"/budgets/:path*",
|
||||||
"/pagadores/:path*",
|
"/payers/:path*",
|
||||||
|
"/inbox/:path*",
|
||||||
|
"/reports/:path*",
|
||||||
"/login",
|
"/login",
|
||||||
"/signup",
|
"/signup",
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user