Skip to content

Pass a map <URL, handler> to createExpressApp #7

@willdurand

Description

@willdurand

The createExpressApp() function returns a function that takes an (Express) handler as argument: https://github.com/mozilla/addons-cli-utils/blob/9fd4e7b7d37022baa0ea2022fe2150d717621b3e/src/functions.ts#L65

This handler is configured to respond to POST / requests in the function. We should probably add the ability to register more than one URL/handler if this tool gets new commands and we need to expose these commands as HTTP/RPC services.

We could maybe pass a map of <URL, handler> instead (we could potentially specify the HTTP verb too).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions