1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-22 11:33:34 +03:00

Fix all routes because they all were broken

This commit is contained in:
Artyom 2017-08-13 15:40:32 +03:00
parent fba73d6531
commit 4b070105b4
No known key found for this signature in database
GPG Key ID: B8E35A33FF522710

View File

@ -1,44 +1,48 @@
{-# LANGUAGE OverloadedStrings #-}
{-# 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))
haskellRoute :: Path '[] 'Open
haskellRoute = "haskell"
authRoute :: Path '[] 'Open
authRoute = "auth"
authRoute = haskellRoute <//> "auth"
setRoute :: Path '[] 'Open
setRoute = "set"
setRoute = haskellRoute <//> "set"
addRoute :: Path '[] 'Open
addRoute = "add"
addRoute = haskellRoute <//> "add"
moveRoute :: Path '[] 'Open
moveRoute = "move"
moveRoute = haskellRoute <//> "move"
deleteRoute :: Path '[] 'Open
deleteRoute = "delete"
deleteRoute = haskellRoute <//> "delete"
feedRoute :: Path '[] 'Open
feedRoute = "feed"
feedRoute = haskellRoute <//> "feed"
renderRoute :: Path '[] 'Open
renderRoute = "render"
renderRoute = haskellRoute <//> "render"
adminRoute :: Path '[] 'Open
adminRoute = "admin"
adminRoute = haskellRoute <//> "admin"