-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathfetch_head_grep.txt
More file actions
30 lines (30 loc) · 4.67 KB
/
fetch_head_grep.txt
File metadata and controls
30 lines (30 loc) · 4.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FETCH_HEAD:app/api/bills/route.ts:import { withAuth } from '@/lib/auth';
FETCH_HEAD:app/api/bills/route.ts:export const GET = withAuth(getHandler);
FETCH_HEAD:app/api/bills/route.ts:export const POST = withAuth(postHandler);
FETCH_HEAD:app/api/family/route.ts:import { withAuth } from '@/lib/auth';
FETCH_HEAD:app/api/family/route.ts:export const GET = withAuth(getHandler);
FETCH_HEAD:app/api/family/route.ts:export const POST = withAuth(postHandler);
FETCH_HEAD:app/api/goals/route.ts:import { withAuth } from '@/lib/auth';
FETCH_HEAD:app/api/goals/route.ts:export const GET = withAuth(getHandler);
FETCH_HEAD:app/api/goals/route.ts:export const POST = withAuth(postHandler);
FETCH_HEAD:app/api/send/route.ts:import { withAuth } from '@/lib/auth';
FETCH_HEAD:app/api/send/route.ts:export const POST = withAuth(handler);
FETCH_HEAD:app/api/split/calculate/route.ts:import { withAuth, ApiError } from '@/lib/auth';
FETCH_HEAD:app/api/split/calculate/route.ts:export const GET = withAuth(handler);
FETCH_HEAD:app/api/split/route.ts:import { withAuth, ApiError } from '@/lib/auth';
FETCH_HEAD:app/api/split/route.ts:export const GET = withAuth(getHandler);
FETCH_HEAD:app/api/split/route.ts:export const POST = withAuth(postHandler);
FETCH_HEAD:app/api/user/profile/route.ts:import { withAuth } from '@/lib/auth';
FETCH_HEAD:app/api/user/profile/route.ts:export const GET = withAuth(handler);
FETCH_HEAD:docs/API_ROUTES.md:The `withAuth` helper in `/lib/auth.ts` protects routes by:
FETCH_HEAD:docs/API_ROUTES.md:import { withAuth } from '@/lib/auth';
FETCH_HEAD:docs/API_ROUTES.md:export const GET = withAuth(handler);
FETCH_HEAD:docs/API_ROUTES.md:- All protected routes use `withAuth` wrapper
FETCH_HEAD:docs/AUTH_IMPLEMENTATION.md:- `withAuth()` - wrapper for protecting route handlers
FETCH_HEAD:docs/AUTH_IMPLEMENTATION.md:All use `withAuth` wrapper and return 401 if unauthenticated:
FETCH_HEAD:docs/AUTH_IMPLEMENTATION.md:import { withAuth } from '@/lib/auth';
FETCH_HEAD:docs/AUTH_IMPLEMENTATION.md:export const GET = withAuth(handler);
FETCH_HEAD:docs/AUTH_IMPLEMENTATION.md:- [x] `withAuth` helper created and used in protected routes
FETCH_HEAD:docs/AUTH_QUICK_REF.md:import { withAuth } from '@/lib/auth';
FETCH_HEAD:docs/AUTH_QUICK_REF.md:export const GET = withAuth(handler);
FETCH_HEAD:docs/AUTH_QUICK_REF.md:export const POST = withAuth(handler);