Skip to content

Commit

Permalink
fix AttributeTargets for EndPoint and Wildcard
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarmil committed Dec 13, 2024
1 parent 44a516b commit 59d6805
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/Bolero/Router.fs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ type Router<'ep, 'model, 'msg> =

/// <summary>Declare how an F# union case matches to a URI.</summary>
/// <category>Routing</category>
[<AttributeUsage(AttributeTargets.Property, AllowMultiple = false)>]
[<AttributeUsage(AttributeTargets.Property ||| AttributeTargets.Method, AllowMultiple = false)>]
type EndPointAttribute(path, query) =
inherit Attribute()

Expand All @@ -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.
/// </summary>
/// <category>Routing</category>
[<AttributeUsage(AttributeTargets.Property, AllowMultiple = false)>]
[<AttributeUsage(AttributeTargets.Property ||| AttributeTargets.Method, AllowMultiple = false)>]
type WildcardAttribute
/// <summary>
/// Declare that the given field of an F# union case matches the entire remainder of the URL path.
Expand Down

0 comments on commit 59d6805

Please sign in to comment.