Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR enhances the frontend UI and exposes a route for pixel-rate change.
Acknowledgement to zoezheng126 with UX idea and help.
#11 #5
UI enhancement
Pixel_rate_change
POST
/changePixelRate
This route is used to update the pixel rate.
Request Data: JSON containing the keys
"new_rate"
and"token"
.Response Status Codes: If everything is okay and the pixel_rate is updated,
200 OK
is returned. If the response has an invalid token (i.e. the PG isn't registered),401 Unauthorized
is returned. If there are missing attributes in the json file400 Missing attributes
is returned.