import methods from './methods';
import makeAsyncActionSet from './makeAsyncActionSet';
import buildAsyncAction from './buildAsyncAction';
import endpoints from '../settings/endpoints';
export const LOGIN = makeAsyncActionSet('LOGIN');
export function login(token, callback) {
return buildAsyncAction(
LOGIN,
endpoints.get('USER_INFO').query({ 'circle-token': token }),
methods.GET,
{},
{ token, callback }
);
}
export const GET_PROJECTS = makeAsyncActionSet('GET_PROJECTS');
export function getProjects(callback) {
GET_PROJECTS,
endpoints.get('ALL_PROJECTS'),
{ callback }