-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
Dear chalice,
I was wondering if it's possible to have only one resource in the API GATEWAY using {proxy+} integration and route the traffic inside chalice.
The point is not to create each time a new resource for each endpoint (new infrastructure to deploy). I wan't to manage the routes inside my chalice application.
When I try to route using:
@app.route('/a', methods=["GET"])
def a():
return {
'statusCode': 200,
'body': json.dumps('Hello a!')
}
The response recieved is:
{
"Code": "MethodNotAllowedError",
"Message": "Unsupported method: GET"
}
When accessing the index it works:
@app.route('/')
def index():
return {
'statusCode': 200,
'body': json.dumps('Hola chalice!')
}
Response:
{
"statusCode": 200,
"body": "\"Hola chalice!\""
}
The proxy configuration that I would like to use:
Thanks a lot!!!!
annjawn
Metadata
Metadata
Assignees
Labels
No labels