Skip to content

Commit

Permalink
[wizard] Build redirects app, connect to dev api server.
Browse files Browse the repository at this point in the history
  • Loading branch information
mayakokits authored and torotil committed Jan 11, 2018
1 parent 02d7fe2 commit 3d9b2de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion campaignion_wizard/redirects_app/build/api-server.js
Expand Up @@ -9,7 +9,6 @@ const middlewares = jsonServer.defaults()
// Set default middlewares (logger, static, cors and no-cache)
server.use(middlewares)

console.log(initialData.endpoints.nodes)
// Add custom routes before JSON Server router
server.get('/getnodes', (req, res) => {
res.status(200).jsonp(fakeNodes(req.url))
Expand Down
4 changes: 2 additions & 2 deletions campaignion_wizard/src/ThankyouStep.php
Expand Up @@ -110,8 +110,8 @@ protected function pageForm(&$form_state, $index, $title, $prefix) {
]
],
'endpoints' => [
'nodes' => '/getnodes',
'redirects' => '/node/8/save-my-redirects'
'nodes' => 'http://localhost:8081/getnodes',
'redirects' => 'http://localhost:8081/data'
]
);
$settings = array(
Expand Down

0 comments on commit 3d9b2de

Please sign in to comment.