mirror of
https://github.com/aelve/guide.git
synced 2024-11-26 03:08:37 +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 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"
|
||||
|
Loading…
Reference in New Issue
Block a user