-
Notifications
You must be signed in to change notification settings - Fork 11
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
Feature/bridge user signature #20
base: master
Are you sure you want to change the base?
Conversation
mvm/quorum/bridge/http.go
Outdated
@@ -22,12 +30,37 @@ func StartHTTP(p *Proxy, s *Storage) error { | |||
proxy, store = p, s | |||
router := httptreemux.New() | |||
router.GET("/", index) | |||
router.GET("/assets/:id/contract", assetContract) | |||
router.GET("/assets/:contract/id", assetInfo) |
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.
Use the same /assets/:id endpoint for both query.
}) | ||
} | ||
|
||
func createUser(w http.ResponseWriter, r *http.Request, params map[string]string) { | ||
if len(store.limiterAvailable(r.RemoteAddr)) > UserCreationLimit { | ||
render.New().JSON(w, http.StatusTooManyRequests, map[string]interface{}{"error": "too many request"}) |
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.
Not returned
mvm/quorum/bridge/http.go
Outdated
} | ||
id := uuid.FromBytesOrNil(num.Bytes()) | ||
render.New().JSON(w, http.StatusOK, map[string]interface{}{"asset_id": id.String()}) | ||
} |
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.
combine those two methods and respond the same information.
@cedricfung finished encrypt, decrypt extra, and other comments |
No description provided.