Remove unused Home route
This commit is contained in:
parent
f873ba7967
commit
f0475c2217
1 changed files with 2 additions and 5 deletions
|
@ -6,15 +6,14 @@ import Url.Parser exposing (Parser, map, oneOf, parse, s, top)
|
||||||
|
|
||||||
|
|
||||||
type Route
|
type Route
|
||||||
= Home
|
= Collection
|
||||||
| Collection
|
|
||||||
| DeckList
|
| DeckList
|
||||||
|
|
||||||
|
|
||||||
parser : Parser (Route -> a) a
|
parser : Parser (Route -> a) a
|
||||||
parser =
|
parser =
|
||||||
oneOf
|
oneOf
|
||||||
[ map Home top
|
[ map Collection top
|
||||||
, map Collection (s "collection")
|
, map Collection (s "collection")
|
||||||
, map DeckList (s "decks")
|
, map DeckList (s "decks")
|
||||||
]
|
]
|
||||||
|
@ -23,8 +22,6 @@ parser =
|
||||||
toUrl : Route -> String
|
toUrl : Route -> String
|
||||||
toUrl route =
|
toUrl route =
|
||||||
case route of
|
case route of
|
||||||
Home ->
|
|
||||||
Url.Builder.absolute [] []
|
|
||||||
|
|
||||||
Collection ->
|
Collection ->
|
||||||
Url.Builder.absolute [ "collection" ] []
|
Url.Builder.absolute [ "collection" ] []
|
||||||
|
|
Loading…
Reference in a new issue