feat: improve structure
This commit is contained in:
parent
09aaa1e7a3
commit
547594294a
13 changed files with 10 additions and 4 deletions
|
|
@ -1,3 +1,3 @@
|
|||
import { handler } from '@/src/lib/auth-server';
|
||||
import { handler } from '@/lib/auth-server';
|
||||
|
||||
export const { GET, POST } = handler;
|
||||
|
|
|
|||
|
|
@ -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
1
src/hooks/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
// Add your hooks here
|
||||
|
|
@ -19,7 +19,12 @@
|
|||
}
|
||||
],
|
||||
"paths": {
|
||||
"@/*": ["./*"]
|
||||
"@/*": ["./*"],
|
||||
"@/components/*": ["./src/components/*"],
|
||||
"@/lib/*": ["./src/lib/*"],
|
||||
"@/hooks/*": ["./src/hooks/*"],
|
||||
"@/app/*": ["./src/app/*"],
|
||||
"@/constants": ["./src/constants.ts"]
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
|
|
|
|||
Loading…
Reference in a new issue