mattermost-mobile/service/actions/posts.js
enahum e2f3f7b803 project folder structure (#107)
* project folder structure

* Moving store to be called from app folder
2016-12-09 10:34:17 -05:00

17 lines
499 B
JavaScript

// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import {bindClientFunc} from './helpers.js';
import Client from 'service/client';
import {PostsTypes} from 'service/constants';
export function fetchPosts(teamId, channelId) {
return bindClientFunc(
Client.fetchPosts,
PostsTypes.FETCH_POSTS_REQUEST,
PostsTypes.FETCH_POSTS_SUCCESS,
PostsTypes.FETCH_POSTS_FAILURE,
teamId,
channelId
);
}