Skip to content

Commit

Permalink
smash: expose /api/v1/tickers endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jbgi committed Oct 12, 2021
1 parent b13d600 commit 5a53cd9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/smash.nix
Expand Up @@ -244,6 +244,7 @@ in {
"/api/v1/delisted"
"/api/v1/retired"
"/api/v1/status"
"/api/v1/tickers"
];
in lib.recursiveUpdate (lib.genAttrs endpoints (p: {
proxyPass = "http://127.0.0.1:6081${p}";
Expand All @@ -260,6 +261,11 @@ in {
"/api/v1/metadata".extraConfig = ''
${corsConfig}
'';
"/api/v1/tickers".extraConfig = ''
${corsConfig}
if ($request_method = POST) {
${apiKeyConfig}
}
};
};
};
Expand Down

0 comments on commit 5a53cd9

Please sign in to comment.