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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/bridge user signature #20

Open
wants to merge 33 commits into
base: master
Choose a base branch
from

Conversation

jadeydi
Copy link
Member

@jadeydi jadeydi commented Jun 29, 2022

No description provided.

@@ -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)
Copy link
Contributor

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"})
Copy link
Contributor

Choose a reason for hiding this comment

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

Not returned

}
id := uuid.FromBytesOrNil(num.Bytes())
render.New().JSON(w, http.StatusOK, map[string]interface{}{"asset_id": id.String()})
}
Copy link
Contributor

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.

@jadeydi
Copy link
Member Author

jadeydi commented Jul 8, 2022

@cedricfung finished encrypt, decrypt extra, and other comments

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.

None yet

2 participants