Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Given a servant API type, this module gives you a Paths
for withPathTemplate
.
Synopsis
- servantPrometheusMiddleware :: forall proxy api. RoutesToPaths api => proxy api -> Middleware
- conf :: PrometheusSettings
- routesToPaths :: forall routes. RoutesToPaths routes => Paths
- class RoutesToPaths routes where
Documentation
servantPrometheusMiddleware :: forall proxy api. RoutesToPaths api => proxy api -> Middleware Source #
This does not catch errors, so it must be called outside of catchErrors
.
routesToPaths :: forall routes. RoutesToPaths routes => Paths Source #
class RoutesToPaths routes where Source #