refactor(core): Delete unused GET /me endpoint (no-changelog) (#5498)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-02-17 10:58:48 +01:00
committed by GitHub
parent d143f3f2ec
commit 12104bc4a3
5 changed files with 1 additions and 124 deletions

View File

@@ -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 },