fb-test-module
Version:
How to use: ``` import {store, getStore} from 'fb-test-module'; conf.DialogramApi = "API_BASE_URL"; conf.Platform = "mobile"; //use "web" if you are on webApp getStore(); //Inject store in your provider ``` and you'r readyt to go. # Base ## Act
25 lines (23 loc) • 581 B
text/typescript
import { ApiType } from '../BaseType';
import { SESSION_ENTITY, REMOVE_SESSION } from './Type';
export const createSession = ({ email, password, form }) => ({
type: ApiType.Dialogram,
payload: {
meta: {
entity: SESSION_ENTITY,
method: "post",
url: "/api/session",
data: {
"email": email,
"password": password
}
}
}
})
export const removeSession = ()=>({
type: REMOVE_SESSION,
payload:{
meta:{},
data:{}
}
})