mirror of
https://github.com/srid/ema.git
synced 2024-11-25 20:12:20 +03:00
routeUrl: use direct by default
This commit is contained in:
parent
a8c5fa4906
commit
92fc401d5e
@ -6,6 +6,7 @@ This is a significant release. If you choose to upgrade your apps from 0.6, see
|
||||
|
||||
- GHC 9.0 support
|
||||
- Better handling of URL anchors (#83; #87)
|
||||
- `routeUrl` uses `UrlDirect` by default. Use `routeUrlWith` if you want to change that.
|
||||
- Multisite rewrite (Ema is rewritten)
|
||||
- Add the notion of `RouteEncoder` (first-class values), along with a `IsRoute` class to define them.
|
||||
- Generic deriving of route encoders, so you do not have to hand-write them.
|
||||
|
@ -54,7 +54,7 @@ urlToFilePath =
|
||||
|
||||
routeUrl :: RouteEncoder a r -> a -> r -> Text
|
||||
routeUrl =
|
||||
routeUrlWith UrlPretty
|
||||
routeUrlWith UrlDirect
|
||||
|
||||
-- | How to produce URL paths from routes
|
||||
data UrlStrategy
|
||||
|
Loading…
Reference in New Issue
Block a user