17 lines
343 B
Haskell
17 lines
343 B
Haskell
|
|
module Web.Routes where
|
||
|
|
|
||
|
|
import IHP.RouterPrelude
|
||
|
|
import Generated.Types
|
||
|
|
import Web.Types
|
||
|
|
|
||
|
|
instance CanRoute HealthController where
|
||
|
|
parseRoute' = do
|
||
|
|
pathPrefix "/healthz"
|
||
|
|
endOfInput
|
||
|
|
pure HealthAction
|
||
|
|
|
||
|
|
instance HasPath HealthController where
|
||
|
|
pathTo HealthAction = "/healthz"
|
||
|
|
|
||
|
|
instance AutoRoute ProbesController
|