mirror of
https://github.com/aelve/guide.git
synced 2024-11-23 04:07:14 +03:00
Fix all routes because they all were broken
This commit is contained in:
parent
fba73d6531
commit
4b070105b4
@ -1,44 +1,48 @@
|
|||||||
{-# LANGUAGE OverloadedStrings #-}
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
{-# LANGUAGE DataKinds #-}
|
{-# LANGUAGE DataKinds #-}
|
||||||
|
|
||||||
module Guide.Routes
|
|
||||||
( addRoute
|
|
||||||
, adminRoute
|
|
||||||
, authRoute
|
|
||||||
, deleteRoute
|
|
||||||
, haskellRoute
|
|
||||||
, feedRoute
|
|
||||||
, moveRoute
|
|
||||||
, renderRoute
|
|
||||||
, setRoute
|
|
||||||
) where
|
|
||||||
|
|
||||||
import Web.Spock (Path)
|
module Guide.Routes
|
||||||
|
(
|
||||||
|
addRoute,
|
||||||
|
adminRoute,
|
||||||
|
authRoute,
|
||||||
|
deleteRoute,
|
||||||
|
haskellRoute,
|
||||||
|
feedRoute,
|
||||||
|
moveRoute,
|
||||||
|
renderRoute,
|
||||||
|
setRoute,
|
||||||
|
) where
|
||||||
|
|
||||||
|
|
||||||
|
import Web.Spock (Path, (<//>))
|
||||||
import Web.Routing.Combinators (PathState(Open))
|
import Web.Routing.Combinators (PathState(Open))
|
||||||
|
|
||||||
|
|
||||||
haskellRoute :: Path '[] 'Open
|
haskellRoute :: Path '[] 'Open
|
||||||
haskellRoute = "haskell"
|
haskellRoute = "haskell"
|
||||||
|
|
||||||
authRoute :: Path '[] 'Open
|
authRoute :: Path '[] 'Open
|
||||||
authRoute = "auth"
|
authRoute = haskellRoute <//> "auth"
|
||||||
|
|
||||||
setRoute :: Path '[] 'Open
|
setRoute :: Path '[] 'Open
|
||||||
setRoute = "set"
|
setRoute = haskellRoute <//> "set"
|
||||||
|
|
||||||
addRoute :: Path '[] 'Open
|
addRoute :: Path '[] 'Open
|
||||||
addRoute = "add"
|
addRoute = haskellRoute <//> "add"
|
||||||
|
|
||||||
moveRoute :: Path '[] 'Open
|
moveRoute :: Path '[] 'Open
|
||||||
moveRoute = "move"
|
moveRoute = haskellRoute <//> "move"
|
||||||
|
|
||||||
deleteRoute :: Path '[] 'Open
|
deleteRoute :: Path '[] 'Open
|
||||||
deleteRoute = "delete"
|
deleteRoute = haskellRoute <//> "delete"
|
||||||
|
|
||||||
feedRoute :: Path '[] 'Open
|
feedRoute :: Path '[] 'Open
|
||||||
feedRoute = "feed"
|
feedRoute = haskellRoute <//> "feed"
|
||||||
|
|
||||||
renderRoute :: Path '[] 'Open
|
renderRoute :: Path '[] 'Open
|
||||||
renderRoute = "render"
|
renderRoute = haskellRoute <//> "render"
|
||||||
|
|
||||||
adminRoute :: Path '[] 'Open
|
adminRoute :: Path '[] 'Open
|
||||||
adminRoute = "admin"
|
adminRoute = haskellRoute <//> "admin"
|
||||||
|
Loading…
Reference in New Issue
Block a user