Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit c9d1402

Browse files
committed
infra: big API cleanup
1 parent 6b69363 commit c9d1402

File tree

10 files changed

+61
-1372
lines changed

10 files changed

+61
-1372
lines changed

infra/default.nix

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ rec
1818
(builtins.readDir function) "${function}/function.zip";
1919
} ;
2020

21+
2122
function-unsplash =
2223
pkgs.runCommand "build-lambda" {}
2324
''
@@ -43,22 +44,6 @@ rec
4344
${pkgs.zip}/bin/zip -r $out/function.zip main.js main_hs
4445
'';
4546

46-
function-presenter-path =
47-
{ path = builtins.seq
48-
(builtins.readDir function-presenter) "${function-presenter}/function.zip";
49-
} ;
50-
51-
function-presenter =
52-
pkgs.runCommand "build-lambda-presenter" {}
53-
''
54-
cp ${pkgs.wai-lambda.wai-lambda-js-wrapper} main.js
55-
# Can't be called 'main' otherwise lambda tries to load it
56-
cp "${handler}/bin/presenter" main_hs
57-
cp ${deckdeckgo-starter-dist}/dist.tar dist.tar
58-
mkdir -p $out
59-
${pkgs.zip}/bin/zip -r $out/function.zip main.js main_hs dist.tar
60-
'';
61-
6247
function-dirty-path =
6348
{ path = builtins.seq
6449
(builtins.readDir function-dirty) "${function-dirty}/function.zip";
@@ -189,12 +174,6 @@ rec
189174

190175
publicKey = builtins.readFile ./public.cer;
191176

192-
swaggerUi = pkgs.runCommand "swagger-ui" {}
193-
''
194-
mkdir -p $out
195-
${handler}/bin/swagger $out
196-
'';
197-
198177
googleResp = { "key1" = publicKey ; };
199178

200179
apiDir = pkgs.writeTextFile

infra/dynamo.tf

Lines changed: 0 additions & 33 deletions
This file was deleted.

infra/handler/app/Presenter.hs

Lines changed: 0 additions & 85 deletions
This file was deleted.

infra/handler/app/Swagger.hs

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)