-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: master
Are you sure you want to change the base?
Conversation
@@ -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 => { |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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}`) |
There was a problem hiding this comment.
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.
No description provided.