Skip to content

apigateway: default proxypath unless addResource(), ... are called #959

@rix0rrr

Description

@rix0rrr

Today, you must decide whether supply proxyPath: "/", or NOT supply proxyPath and call addResource().

For maximum usability, we can default to proxyPath: / but reset it to undefined once one of the addXxx() methods are called.

Also, if "/" is used for the proxy path, we should automatically install an ANY method on the root resource:

api.root.addMethod('ANY');

Otherwise, the root will not route to the proxy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions