Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial port to redux #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Initial port to redux #11

wants to merge 1 commit into from

Conversation

MaxSvargal
Copy link
Collaborator

No description provided.

@@ -5,7 +5,7 @@ const cors = require('@koa/cors')
const app = new Koa()
const router = new Router()

router.get('/generate/eth/:type/:provider/:pair', ctx => {
router.get('/generate/:name/:type/:provider/:pair', ctx => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

export const API_URL = "http://localhost:8081"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3091 is the new default port for both dev-api and production api

Copy link
Collaborator Author

@MaxSvargal MaxSvargal Aug 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be move to a config file

try {
const { payload } = yield take(sendForm)
const { provider, pair, updateAfter, retireAfter } = payload
const res = yield call(fetch, `${API_URL}/generate/eos/crypto/${provider}/${pair}?updatefreq=${updateAfter}&lifetime=${retireAfter}`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parameters can contain special chars, we should encodeURIComponent() every parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants