1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

removed redux completely

This commit is contained in:
Fedor Katurov 2022-01-09 19:03:01 +07:00
parent 26e6d8d41b
commit a4bb07e9cf
323 changed files with 2464 additions and 3348 deletions

View file

@ -1,11 +1,11 @@
import { IComment, INode, ITag } from '~/redux/types';
import { ISocialProvider } from '~/redux/auth/types';
import { IComment, INode, ITag } from '~/types';
import { OAuthProvider } from '~/types/auth';
export const API = {
BASE: process.env.REACT_APP_API_HOST,
USER: {
LOGIN: '/user/login',
OAUTH_WINDOW: (provider: ISocialProvider) =>
OAUTH_WINDOW: (provider: OAuthProvider) =>
`${process.env.REACT_APP_API_HOST}oauth/${provider}/redirect`,
ME: '/user/',
PROFILE: (username: string) => `/user/user/${username}/profile`,