mirror of
https://github.com/Ravinou/borgwarehouse
synced 2026-03-14 14:25:46 +01:00
refactor: ⚡ account API rest compliant
This commit is contained in:
parent
0ee771f64a
commit
03e4b175df
8 changed files with 4 additions and 4 deletions
|
|
@ -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';
|
||||
|
||||
|
|
@ -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';
|
||||
|
||||
|
|
@ -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';
|
||||
|
||||
|
|
@ -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');
|
||||
Loading…
Add table
Add a link
Reference in a new issue