import { handleFetch } from './helpers'; import { DynamicValueTags, User } from '../types/api'; export default class DataApi { public static async getDynamicTags(): Promise { const response = await handleFetch('/dynamicTags/global'); return response.json(); } public static async getCurrentUser(): Promise { const response = await handleFetch('/authorization/user'); return response.json(); } }