mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-26 10:21:51 +00:00
logs
This commit is contained in:
@@ -52,7 +52,10 @@ getAppR (S9PK appId) = getApp appResourceDir appId
|
||||
getApp :: FilePath -> FilePath -> Handler TypedContent
|
||||
getApp rootDir appId = do
|
||||
spec <- querySpecD mostRecentVersion <$> lookupGetParam "spec"
|
||||
appVersions <- registeredAppVersions appId <$> loadRegistry rootDir
|
||||
reg <- loadRegistry rootDir
|
||||
putStrLn ("got registry" :: String)
|
||||
let appVersions = registeredAppVersions appId reg
|
||||
putStrLn $ "valid appversion for " <> appId <> ": " <> show (fmap version appVersions)
|
||||
case getSpecifiedAppVersion spec appVersions of
|
||||
Nothing -> respondSource typePlain sendFlush
|
||||
Just (RegisteredAppVersion (_, filePath)) -> do
|
||||
|
||||
Reference in New Issue
Block a user