Drop slopdashes and add container build

This commit is contained in:
2026-05-06 14:40:33 -05:00
parent a36ff638a9
commit 7e16607d96
3 changed files with 35 additions and 6 deletions

View File

@@ -171,8 +171,8 @@ main = do
in compileFile compileInputFile compileOutFile bundleExportName
Serve { host = hostStr, port = portNum } -> do
putStrLn $ "Starting Arborix bundle server on " ++ hostStr ++ ":" ++ show portNum
putStrLn $ " GET /bundle/hash/:hash primary endpoint"
putStrLn $ " GET /bundle/name/:name convenience endpoint"
putStrLn $ " GET /bundle/hash/:hash -- primary endpoint"
putStrLn $ " GET /bundle/name/:name -- convenience endpoint"
putStrLn $ " Content-Type: application/vnd.arborix.bundle"
runServer hostStr portNum

View File

@@ -30,10 +30,10 @@ import qualified Data.Text as T
--
-- Endpoints
-- ---------
-- GET /health 200 "ok"
-- GET /bundle/name/:name export by stored term name
-- GET /bundle/hash/:hash export by full Merkle hash
-- GET /terms plain-text listing (debug)
-- GET /health - 200 "ok"
-- GET /bundle/name/:name - export by stored term name
-- GET /bundle/hash/:hash - export by full Merkle hash
-- GET /terms - plain-text listing (debug)
--
runServer :: String -> Int -> IO ()
runServer hostStr port =