summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-core/src/actions/navigation.js
blob: 0d00687505624d28c36a399d8b3a97cb9426cc63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26


/**
 * Fetch a new page and update the store accordingly
 * @param {String} uri
 * @return {Action} action
 */
function fetchPage(uri) {
    return (dispatch, getState) => {

    };
}

/**
 * Fetch a new article
 * @param {SummaryArticle} article
 * @return {Action} action
 */
function fetchArticle(article) {
    return fetchPage(article.path);
}

module.exports = {
    fetchPage,
    fetchArticle
};