mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-01 07:45:22 +03:00
Rename constructor argument in example.
This commit is contained in:
parent
881cc7ccbe
commit
f00fff90d9
@ -46,11 +46,11 @@ files allRoutes =
|
||||
|> ApiRoute.int
|
||||
|> ApiRoute.literal ".json"
|
||||
|> ApiRoute.buildTimeRoutes
|
||||
(\constructor ->
|
||||
(\route ->
|
||||
DataSource.succeed
|
||||
[ constructor 1
|
||||
, constructor 2
|
||||
, constructor 3
|
||||
[ route 1
|
||||
, route 2
|
||||
, route 3
|
||||
]
|
||||
)
|
||||
, ApiRoute.succeed
|
||||
@ -74,9 +74,9 @@ files allRoutes =
|
||||
|> ApiRoute.capture
|
||||
|> ApiRoute.literal ".json"
|
||||
|> ApiRoute.buildTimeRoutes
|
||||
(\constructor ->
|
||||
(\route ->
|
||||
DataSource.succeed
|
||||
[ constructor "elm-graphql"
|
||||
[ route "elm-graphql"
|
||||
]
|
||||
)
|
||||
, ApiRoute.succeed
|
||||
|
Loading…
Reference in New Issue
Block a user