mirror of
https://github.com/alexgo-io/peggedassets-server.git
synced 2026-01-12 16:53:14 +08:00
revert: migrate to api v2
This commit is contained in:
170
serverless.yml
170
serverless.yml
@@ -89,94 +89,94 @@ functions:
|
||||
- http:
|
||||
path: /{params+}
|
||||
method: any
|
||||
# stablecoinChart:
|
||||
# handler: src/getStablecoinChart.default
|
||||
# timeout: 60
|
||||
stablecoinChart:
|
||||
handler: src/getStablecoinChart.default
|
||||
timeout: 60
|
||||
memorySize: 3000
|
||||
events:
|
||||
- http:
|
||||
path: stablecoincharts/{chain}
|
||||
method: get
|
||||
stablecoinDominance:
|
||||
handler: src/getChainDominance.default
|
||||
timeout: 60
|
||||
memorySize: 3000
|
||||
events:
|
||||
- http:
|
||||
path: stablecoindominance/{chain}
|
||||
method: get
|
||||
stablecoins:
|
||||
handler: src/getStablecoins.default
|
||||
timeout: 120
|
||||
memorySize: 3000
|
||||
events:
|
||||
- http:
|
||||
path: stablecoins
|
||||
method: get
|
||||
config:
|
||||
handler: src/config.default
|
||||
timeout: 120
|
||||
memorySize: 2000
|
||||
events:
|
||||
- http:
|
||||
path: config
|
||||
method: get
|
||||
stablecoin:
|
||||
handler: src/getStablecoin.default
|
||||
timeout: 120
|
||||
memorySize: 2000
|
||||
events:
|
||||
- http:
|
||||
path: stablecoin/{stablecoin}
|
||||
method: get
|
||||
stablecoinchains:
|
||||
handler: src/getStablecoinChains.default
|
||||
timeout: 60
|
||||
memorySize: 2000
|
||||
events:
|
||||
- http:
|
||||
path: stablecoinchains
|
||||
method: get
|
||||
stablecoinprices:
|
||||
handler: src/getStablecoinPrices.default
|
||||
timeout: 60
|
||||
memorySize: 2000
|
||||
events:
|
||||
- http:
|
||||
path: stablecoinprices
|
||||
method: get
|
||||
storeRates:
|
||||
handler: src/storeRates.default
|
||||
timeout: 60
|
||||
memorySize: 3000
|
||||
events:
|
||||
- schedule: cron(30 0 * * ? *)
|
||||
checkRecentEntries:
|
||||
handler: src/checkRecentDbEntries.default
|
||||
timeout: 60
|
||||
memorySize: 3000
|
||||
events:
|
||||
- schedule: cron(30 */6 * * ? *)
|
||||
rates:
|
||||
handler: src/getRates.default
|
||||
timeout: 60
|
||||
memorySize: 2000
|
||||
events:
|
||||
- http:
|
||||
path: rates
|
||||
method: get
|
||||
# storePeggedAssets:
|
||||
# handler: src/storePeggedAssets.default
|
||||
# timeout: 900
|
||||
# memorySize: 3000
|
||||
# events:
|
||||
# - http:
|
||||
# path: stablecoincharts/{chain}
|
||||
# method: get
|
||||
# stablecoinDominance:
|
||||
# handler: src/getChainDominance.default
|
||||
# timeout: 60
|
||||
# memorySize: 3000
|
||||
# events:
|
||||
# - http:
|
||||
# path: stablecoindominance/{chain}
|
||||
# method: get
|
||||
# stablecoins:
|
||||
# handler: src/getStablecoins.default
|
||||
# timeout: 120
|
||||
# memorySize: 3000
|
||||
# events:
|
||||
# - http:
|
||||
# path: stablecoins
|
||||
# method: get
|
||||
# config:
|
||||
# handler: src/config.default
|
||||
# timeout: 120
|
||||
# environment:
|
||||
# OUTDATED_WEBHOOK: ${env:OUTDATED_WEBHOOK}
|
||||
# triggerStorePegged:
|
||||
# handler: src/triggerStorePegged.default
|
||||
# timeout: 900
|
||||
# memorySize: 2000
|
||||
# events:
|
||||
# - http:
|
||||
# path: config
|
||||
# method: get
|
||||
# stablecoin:
|
||||
# handler: src/getStablecoin.default
|
||||
# timeout: 120
|
||||
# memorySize: 2000
|
||||
# events:
|
||||
# - http:
|
||||
# path: stablecoin/{stablecoin}
|
||||
# method: get
|
||||
# stablecoinchains:
|
||||
# handler: src/getStablecoinChains.default
|
||||
# timeout: 60
|
||||
# memorySize: 2000
|
||||
# events:
|
||||
# - http:
|
||||
# path: stablecoinchains
|
||||
# method: get
|
||||
# stablecoinprices:
|
||||
# handler: src/getStablecoinPrices.default
|
||||
# timeout: 60
|
||||
# memorySize: 2000
|
||||
# events:
|
||||
# - http:
|
||||
# path: stablecoinprices
|
||||
# method: get
|
||||
# storeRates:
|
||||
# handler: src/storeRates.default
|
||||
# timeout: 60
|
||||
# memorySize: 3000
|
||||
# events:
|
||||
# - schedule: cron(30 0 * * ? *)
|
||||
# checkRecentEntries:
|
||||
# handler: src/checkRecentDbEntries.default
|
||||
# timeout: 60
|
||||
# memorySize: 3000
|
||||
# events:
|
||||
# - schedule: cron(30 */6 * * ? *)
|
||||
# rates:
|
||||
# handler: src/getRates.default
|
||||
# timeout: 60
|
||||
# memorySize: 2000
|
||||
# events:
|
||||
# - http:
|
||||
# path: rates
|
||||
# method: get
|
||||
# # storePeggedAssets:
|
||||
# # handler: src/storePeggedAssets.default
|
||||
# # timeout: 900
|
||||
# # memorySize: 3000
|
||||
# # environment:
|
||||
# # OUTDATED_WEBHOOK: ${env:OUTDATED_WEBHOOK}
|
||||
# # triggerStorePegged:
|
||||
# # handler: src/triggerStorePegged.default
|
||||
# # timeout: 900
|
||||
# # memorySize: 2000
|
||||
# # events:
|
||||
# # - schedule: cron(40 * * * ? *)
|
||||
# - schedule: cron(40 * * * ? *)
|
||||
# alertOutdated:
|
||||
# handler: src/alertOutdated.default
|
||||
# timeout: 60
|
||||
|
||||
Reference in New Issue
Block a user