Skip to content

Commit eea1d6f

Browse files
committed
refactor: ⚡ account API rest compliant
1 parent 7772486 commit eea1d6f

8 files changed

Lines changed: 4 additions & 4 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createMocks } from 'node-mocks-http';
2-
import handler from '~/pages/api/account/updateEmail';
2+
import handler from '~/pages/api/account/email';
33
import { getServerSession } from 'next-auth/next';
44
import { ConfigService } from '~/services';
55

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createMocks } from 'node-mocks-http';
2-
import handler from '~/pages/api/account/updatePassword';
2+
import handler from '~/pages/api/account/password';
33
import { getServerSession } from 'next-auth/next';
44
import { ConfigService, AuthService } from '~/services';
55

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createMocks } from 'node-mocks-http';
2-
import handler from '~/pages/api/account/updateUsername';
2+
import handler from '~/pages/api/account/username';
33
import { getServerSession } from 'next-auth/next';
44
import { ConfigService } from '~/services';
55

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createMocks } from 'node-mocks-http';
2-
import handler from '~/pages/api/account/getWizardEnv';
2+
import handler from '~/pages/api/account/wizard-env';
33
import { getServerSession } from 'next-auth/next';
44

55
vi.mock('next-auth/next');

0 commit comments

Comments
 (0)