Skip to content

Commit

Permalink
[#114] Replace record syntax with lens syntax, add swagger.json
Browse files Browse the repository at this point in the history
  • Loading branch information
sancho20021 committed Jul 24, 2022
1 parent ac2ddfb commit fafd1eb
Show file tree
Hide file tree
Showing 4 changed files with 786 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/swagger-api/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ main = do
let openApi = toOpenApi (Proxy :: Proxy API)
& info . title .~ "Coffer Web API"
& info . version .~ "1.0"
& servers .~ ["localhost:8081"]
BL.writeFile "swagger.json" (encodePretty openApi)
& servers .~ ["http://localhost:8081"]
BL.writeFile "docs/swagger.json" (encodePretty openApi)
Loading

0 comments on commit fafd1eb

Please sign in to comment.