Add missing slash character in generated docs.
This commit is contained in:
parent
87b7c8e376
commit
42fc048dfc
1 changed files with 2 additions and 2 deletions
|
@ -175,7 +175,7 @@ instance Show Endpoint where
|
||||||
-- POST /foo
|
-- POST /foo
|
||||||
-- @
|
-- @
|
||||||
defEndpoint :: Endpoint
|
defEndpoint :: Endpoint
|
||||||
defEndpoint = Endpoint "/" DocGET
|
defEndpoint = Endpoint "" DocGET
|
||||||
|
|
||||||
instance Hashable Endpoint
|
instance Hashable Endpoint
|
||||||
|
|
||||||
|
@ -577,7 +577,7 @@ instance (KnownSymbol path, HasDocs sublayout) => HasDocs (path :> sublayout) wh
|
||||||
docsFor sublayoutP (endpoint', action)
|
docsFor sublayoutP (endpoint', action)
|
||||||
|
|
||||||
where sublayoutP = Proxy :: Proxy sublayout
|
where sublayoutP = Proxy :: Proxy sublayout
|
||||||
endpoint' = endpoint & path <>~ symbolVal pa
|
endpoint' = endpoint & path <>~ '/' : symbolVal pa
|
||||||
pa = Proxy :: Proxy path
|
pa = Proxy :: Proxy path
|
||||||
|
|
||||||
{-
|
{-
|
||||||
|
|
Loading…
Reference in a new issue