updated path mapping

This commit is contained in:
Gert Wohlgemuth 2018-05-20 15:23:25 -07:00
parent ae5230cf45
commit 3a4bbac25f

View File

@ -117,7 +117,6 @@ functions:
environment: environment:
strategyTable: ${self:custom.strategyTable} strategyTable: ${self:custom.strategyTable}
#TODO
#returns the source code of this given strategy #returns the source code of this given strategy
#unless it's private #unless it's private
code: code:
@ -125,12 +124,13 @@ functions:
handler: freqtrade/aws/strategy.code handler: freqtrade/aws/strategy.code
events: events:
- http: - http:
path: strategies/{name}/code path: strategies/{user}/{name}/code
method: get method: get
cors: true cors: true
request: request:
parameter: parameter:
paths: paths:
user: true
name: true name: true
response: response:
headers: headers:
@ -139,7 +139,24 @@ functions:
environment: environment:
strategyTable: ${self:custom.strategyTable} strategyTable: ${self:custom.strategyTable}
#TODO # loads the details of the specific strategy
get:
memorySize: 128
handler: freqtrade/aws/strategy.get
events:
- http:
path: strategies/{user}/{name}
method: get
cors: true
request:
parameter:
paths:
user: true
name: true
environment:
strategyTable: ${self:custom.strategyTable}
#submits a new strategy to the system #submits a new strategy to the system
submit: submit:
memorySize: 128 memorySize: 128