wip
This commit is contained in:
		@@ -105,8 +105,8 @@ instance VersionedCatalog AppM 1 where
 | 
				
			|||||||
getBooksV1 :: Channel.ChannelID -> SafeUser -> AppM (Catalog 1)
 | 
					getBooksV1 :: Channel.ChannelID -> SafeUser -> AppM (Catalog 1)
 | 
				
			||||||
getBooksV1 identifier SafeUser{} = do
 | 
					getBooksV1 identifier SafeUser{} = do
 | 
				
			||||||
  updated <- liftIO getCurrentTime
 | 
					  updated <- liftIO getCurrentTime
 | 
				
			||||||
  let self = Rel ("/api/current" <> selfUrl)
 | 
					  let self = Rel ("/api/current/" <> selfUrl)
 | 
				
			||||||
      start = Rel ("/api/current" <> startUrl)
 | 
					      start = Rel ("/api/current/" <> startUrl)
 | 
				
			||||||
      selfUrl = pack . uriPath . linkURI $ safeLink (Proxy @(BaseAPI 1)) (Proxy @(ChannelCatalog 1)) identifier
 | 
					      selfUrl = pack . uriPath . linkURI $ safeLink (Proxy @(BaseAPI 1)) (Proxy @(ChannelCatalog 1)) identifier
 | 
				
			||||||
      startUrl = pack . uriPath . linkURI $ safeLink (Proxy @(BaseAPI 1)) (Proxy @(RootCatalog 1))
 | 
					      startUrl = pack . uriPath . linkURI $ safeLink (Proxy @(BaseAPI 1)) (Proxy @(RootCatalog 1))
 | 
				
			||||||
      entries = mempty
 | 
					      entries = mempty
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user