Skip to content
This repository was archived by the owner on Apr 21, 2018. It is now read-only.
This repository was archived by the owner on Apr 21, 2018. It is now read-only.

WP-API path #2

@juanbrujo

Description

@juanbrujo

In configuration you say:

api: the API's index, eg. http://localhost/wp-json (required)

But I'm having lots of 404 because in js/router.jsx you have:

template: <Archive endpoint={ config.api + '/wp/v2/posts?author_name=' + context.params[0] } title={ 'Author: ' + context.params[0] } />

https://github.com/kwight/tango/blob/master/js/router.jsx#L46

Removing those /wp/v2 clears the 404 errors but now I'm getting new ones:

Uncaught TypeError: Cannot read property 'join' of undefined @ public.js
Uncaught TypeError: Cannot read property '_currentElement' of null  @ public.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions