This commit is contained in:
Mats Rauhala 2018-08-28 22:38:57 +03:00
parent 83e39cbe6c
commit 3f1b2d3588

View File

@ -105,8 +105,8 @@ instance VersionedCatalog AppM 1 where
getBooksV1 :: Channel.ChannelID -> SafeUser -> AppM (Catalog 1)
getBooksV1 identifier SafeUser{} = do
updated <- liftIO getCurrentTime
let self = Rel ("/api/current" <> selfUrl)
start = Rel ("/api/current" <> startUrl)
let self = Rel ("/api/current/" <> selfUrl)
start = Rel ("/api/current/" <> startUrl)
selfUrl = pack . uriPath . linkURI $ safeLink (Proxy @(BaseAPI 1)) (Proxy @(ChannelCatalog 1)) identifier
startUrl = pack . uriPath . linkURI $ safeLink (Proxy @(BaseAPI 1)) (Proxy @(RootCatalog 1))
entries = mempty