refactor(core): Delete unused GET /me endpoint (no-changelog) (#5498)
This commit is contained in:
committed by
GitHub
parent
d143f3f2ec
commit
12104bc4a3
@@ -5,16 +5,12 @@ import {
|
||||
IUserResponse,
|
||||
} from '@/Interface';
|
||||
import { IDataObject } from 'n8n-workflow';
|
||||
import { makeRestApiRequest } from '@/utils';
|
||||
import { makeRestApiRequest } from '@/utils/apiUtils';
|
||||
|
||||
export function loginCurrentUser(context: IRestApiContext): Promise<IUserResponse | null> {
|
||||
return makeRestApiRequest(context, 'GET', '/login');
|
||||
}
|
||||
|
||||
export function getCurrentUser(context: IRestApiContext): Promise<IUserResponse | null> {
|
||||
return makeRestApiRequest(context, 'GET', '/me');
|
||||
}
|
||||
|
||||
export function login(
|
||||
context: IRestApiContext,
|
||||
params: { email: string; password: string },
|
||||
|
||||
Reference in New Issue
Block a user