feat: improve structure

This commit is contained in:
nxtkofi 2026-04-01 18:14:52 +02:00
parent 09aaa1e7a3
commit 547594294a
13 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,3 @@
import { handler } from '@/src/lib/auth-server';
import { handler } from '@/lib/auth-server';
export const { GET, POST } = handler;

View file

@ -7,8 +7,8 @@ import {
FieldLabel,
} from '@/components/ui/field';
import { Input } from '@/components/ui/input';
import { deafultPasswordValidator } from '@/src/constants';
import { authClient } from '@/src/lib/auth-client';
import { deafultPasswordValidator } from '@/constants';
import { authClient } from '@/lib/auth-client';
import { zodResolver } from '@hookform/resolvers/zod';
import { Controller, useForm } from 'react-hook-form';
import { toast } from 'sonner';

1
src/hooks/index.ts Normal file
View file

@ -0,0 +1 @@
// Add your hooks here

View file

@ -19,7 +19,12 @@
}
],
"paths": {
"@/*": ["./*"]
"@/*": ["./*"],
"@/components/*": ["./src/components/*"],
"@/lib/*": ["./src/lib/*"],
"@/hooks/*": ["./src/hooks/*"],
"@/app/*": ["./src/app/*"],
"@/constants": ["./src/constants.ts"]
}
},
"include": [