Add missing slash character in generated docs.

This commit is contained in:
Phil Freeman 2014-12-31 17:19:35 -08:00
parent 87b7c8e376
commit 42fc048dfc

View file

@ -175,7 +175,7 @@ instance Show Endpoint where
-- POST /foo
-- @
defEndpoint :: Endpoint
defEndpoint = Endpoint "/" DocGET
defEndpoint = Endpoint "" DocGET
instance Hashable Endpoint
@ -577,7 +577,7 @@ instance (KnownSymbol path, HasDocs sublayout) => HasDocs (path :> sublayout) wh
docsFor sublayoutP (endpoint', action)
where sublayoutP = Proxy :: Proxy sublayout
endpoint' = endpoint & path <>~ symbolVal pa
endpoint' = endpoint & path <>~ '/' : symbolVal pa
pa = Proxy :: Proxy path
{-