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

0.2.0 related changes #32

Merged
merged 14 commits into from
Jun 1, 2020
Merged

0.2.0 related changes #32

merged 14 commits into from
Jun 1, 2020

Conversation

codekidX
Copy link
Owner

@codekidX codekidX commented Jun 1, 2020

The changes done to 0.2 version is huge:

  • Provide interoperability with stdlib
  • Everything is a controller now -- and handlers can be casted into controller using UseHandler, UseHandlerFunc, UseIntermHandler
  • HookContext is separate from rubik.Request
  • The method signature of a controller now is:
func someCtl(req *rubik.Request) {
    req.Respond("Hello")
}
  • Success and Failure methods are now *req.Respond and *req.Throw
  • Injector now returns the pointer of the Entity for modifications in Middlewares
  • Middlewares are now rubik.Controller too
  • bump version
  • Fix Render, Proxy method with the new signature
  • Remove storage routes util

@codekidX codekidX merged commit 1a305bd into master Jun 1, 2020
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.

1 participant