Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
francescovallone committed Jun 9, 2024
2 parents ad464ad + f49af61 commit 64458b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/serinus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.4.1

- Fix another bug in the normalization route of the Controllers (#22)

## 0.4.0

- Add event-based response state (#14)
Expand Down
3 changes: 3 additions & 0 deletions packages/serinus/lib/src/core/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ abstract class Controller {
if (routePath.startsWith('/') && routePath.length > 1) {
routePath = routePath.substring(1);
}
if (routeDataPath.startsWith('/') && routeDataPath.length > 1) {
routeDataPath = routeDataPath.substring(1);
}
routeDataPath =
routeDataPath.replaceAll('/v${r.route.version ?? version ?? 0}', '');
return routePath == routeDataPath && r.method == routeData.method;
Expand Down
2 changes: 1 addition & 1 deletion packages/serinus/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Serinus is a framework written in Dart
documentation: https://docs.serinus.app
homepage: https://docs.serinus.app
repository: https://github.com/francescovallone/serinus
version: 0.4.0
version: 0.4.1
topics:
- server
- httpserver
Expand Down

0 comments on commit 64458b6

Please sign in to comment.