diff --git a/CHANGELOG.md b/CHANGELOG.md index 9eaab3a..2978750 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,8 @@ * [#355](https://github.com/fsbolero/Bolero/issues/355) Fix CSS isolation on rebuild. +* Fix AttributeTargets for `EndPoint` and `Wildcard`. + ## 0.23 * [#308](https://github.com/fsbolero/Bolero/issues/308) Add router functions to decide what to do when the URL is invalid. diff --git a/src/Bolero/Router.fs b/src/Bolero/Router.fs index f7cbcae..3a10e20 100644 --- a/src/Bolero/Router.fs +++ b/src/Bolero/Router.fs @@ -102,7 +102,7 @@ type Router<'ep, 'model, 'msg> = /// Declare how an F# union case matches to a URI. /// Routing -[] +[] type EndPointAttribute(path, query) = inherit Attribute() @@ -125,7 +125,7 @@ type EndPointAttribute(path, query) = /// Declare that the given field of an F# union case matches the entire remainder of the URL path. /// /// Routing -[] +[] type WildcardAttribute /// /// Declare that the given field of an F# union case matches the entire remainder of the URL path.