Skip to content

Should first parameter for http triggers be route or function name #17

Open
@ejizba

Description

@ejizba

Some feedback here from @ChuckJonas

Is the first parameter the route? Or just the function name? I'm hoping it's the former as this would make it similar to other popular JS frameworks.

Fwiw, we did have the route as the first parameter in one of the prototypes (see here), but we got mixed feedback on that. Sure, it's more similar to express, but a lot of people view the function name as very important. Our initial decision was to use the function name for the sake of simplicity and to be consistent with other triggers. We are considering a true express.js programming model and that may be the better place to use route as the first parameter, tracked here: #16

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions