@@ -175,7 +175,7 @@ instance Show Endpoint where
175175-- POST /foo
176176-- @
177177defEndpoint :: Endpoint
178−defEndpoint = Endpoint "/" DocGET
178+defEndpoint = Endpoint "" DocGET
179179
180180instance Hashable Endpoint
181181
@@ -577,7 +577,7 @@ instance (KnownSymbol path, HasDocs sublayout) => HasDocs (path :> sublayout) wh
577577 docsFor sublayoutP (endpoint', action)
578578
579579 where sublayoutP = Proxy :: Proxy sublayout
580− endpoint' = endpoint & path <>~ symbolVal pa
580+ endpoint' = endpoint & path <>~ '/' : symbolVal pa
581581 pa = Proxy :: Proxy path
582582
583583{-