refactor: account API rest compliant

This commit is contained in:
Ravinou 2025-04-12 19:27:33 +02:00
commit 03e4b175df
No known key found for this signature in database
GPG key ID: EEEE670C40F6A4D7
8 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
import { createMocks } from 'node-mocks-http';
import handler from '~/pages/api/account/updateEmail';
import handler from '~/pages/api/account/email';
import { getServerSession } from 'next-auth/next';
import { ConfigService } from '~/services';

View file

@ -1,5 +1,5 @@
import { createMocks } from 'node-mocks-http';
import handler from '~/pages/api/account/updatePassword';
import handler from '~/pages/api/account/password';
import { getServerSession } from 'next-auth/next';
import { ConfigService, AuthService } from '~/services';

View file

@ -1,5 +1,5 @@
import { createMocks } from 'node-mocks-http';
import handler from '~/pages/api/account/updateUsername';
import handler from '~/pages/api/account/username';
import { getServerSession } from 'next-auth/next';
import { ConfigService } from '~/services';

View file

@ -1,5 +1,5 @@
import { createMocks } from 'node-mocks-http';
import handler from '~/pages/api/account/getWizardEnv';
import handler from '~/pages/api/account/wizard-env';
import { getServerSession } from 'next-auth/next';
vi.mock('next-auth/next');