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

feat:v0.3.0 #2

Merged
merged 3 commits into from
Sep 2, 2024
Merged

feat:v0.3.0 #2

merged 3 commits into from
Sep 2, 2024

Conversation

iyifr
Copy link
Owner

@iyifr iyifr commented Sep 2, 2024

0.3.0 (Minor)

  • NEW readFormData utility - familiar formdata parsing API
apiRouter.get("/signup", (event) async  {
  var formData = await readFormData(event);

  var username = formData.get('username');
  var password = formData.get('password');

  // ALSO included..
  var allNames = formdata.getAll('names') // return List<String>

  userService.signup(username, password);
  event.statusCode = 201;

  return 'Hi from /api';
});
  • NEW getRequestIp and getRequestOrigin utilities
  • PATCHED H4Event params now correctly parses more than one param in the route string. e.g
    '/user/:userId/profile/:projectId'
  • PATCHED all bugs in the behaviour of param routes.

OTHERS

  • Added regex test to make sure regex matching and errors over wrong url format in route definitions is correct.
  • Added multiple routers feature

@iyifr iyifr merged commit b54a81d into main Sep 2, 2024
1 check failed
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