Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Dawn of v1 #87

Merged
merged 9 commits into from
Mar 17, 2020
Merged

Dawn of v1 #87

merged 9 commits into from
Mar 17, 2020

Conversation

keroxp
Copy link
Owner

@keroxp keroxp commented Mar 16, 2020

Huge refactoring and breaking changes in progress.

  • renamed: HttpRouter -> Router
  • added: App, createaApp
const app = createApp();
app.listen(":8899");
  • feat: route() and nested router support
function UserRoutes() {
  const router = createRouter();
  return router();
}
router.route("/users", UserRoutes());
  • feat: router.finally()
  • renamed: router.handleError() -> router.catch()
  • changed: handler function type
router.get("/", async (req: ServerRequest, {match}: RouteParams ) => {
});

@keroxp keroxp merged commit 24be3ac into master Mar 17, 2020
@keroxp keroxp deleted the nested-router branch March 17, 2020 14:33
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant