mirror of
https://github.com/haskell-servant/servant-ekg.git
synced 2024-11-23 03:29:43 +01:00
Add HasEndpoint instance for BasicAuth
This commit is contained in:
parent
2183528966
commit
0d966b5b67
2 changed files with 5 additions and 1 deletions
|
@ -184,3 +184,7 @@ instance HasEndpoint Raw where
|
||||||
instance HasEndpoint (sub :: *) => HasEndpoint (CaptureAll (h :: Symbol) a :> sub) where
|
instance HasEndpoint (sub :: *) => HasEndpoint (CaptureAll (h :: Symbol) a :> sub) where
|
||||||
getEndpoint _ = getEndpoint (Proxy :: Proxy sub)
|
getEndpoint _ = getEndpoint (Proxy :: Proxy sub)
|
||||||
enumerateEndpoints _ = enumerateEndpoints (Proxy :: Proxy sub)
|
enumerateEndpoints _ = enumerateEndpoints (Proxy :: Proxy sub)
|
||||||
|
|
||||||
|
instance HasEndpoint (sub :: *) => HasEndpoint (BasicAuth (realm :: Symbol) a :> sub) where
|
||||||
|
getEndpoint _ = getEndpoint (Proxy :: Proxy sub)
|
||||||
|
enumerateEndpoints _ = enumerateEndpoints (Proxy :: Proxy sub)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
cabal-version: >=1.10
|
cabal-version: >=1.10
|
||||||
name: servant-ekg
|
name: servant-ekg
|
||||||
version: 0.3.0.0
|
version: 0.3.1.0
|
||||||
synopsis: Helpers for using ekg with servant
|
synopsis: Helpers for using ekg with servant
|
||||||
description: Helpers for using ekg with servant, e.g.. counters per endpoint.
|
description: Helpers for using ekg with servant, e.g.. counters per endpoint.
|
||||||
license: BSD3
|
license: BSD3
|
||||||
|
|
Loading…
Reference in a new issue