Created
April 24, 2017 07:28
-
-
Save Razzwan/4cbc7f764e7f31fff1865dcd7afdca64 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
import * as a from './_const' | |
export function loadUser () { | |
return { | |
type: a.LOAD_USER, | |
payload: { | |
client: 'default', // здесь указано, какой именно url будет использован как базовый (см store/clients/clientsMiddleware) | |
request: { | |
url: '/api/user/info', // это относительный путь к API для получения информации о пользователе | |
}, | |
}, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment