Allows Express usage with Azure Function
Connect your Express application to an Azure Function handler, and make seamless usage of all middlewares you are already familiar with.
const createHandler = createHandler;const express = ;// Create express app as usualconst app = ;app;// Binds the express app to an Azure Function handlermoduleexports = ;
Make sure you are binding
res in your
To allow Express handles all HTTP routes itself you may set a glob star route in a single root
segments is not used and could be anything. See Azure Function documentation.
All examples here.
All native Azure Functions context properties, except
done, are exposed through
As en example, you can log using:
Supported Node version are:
- Node 6.11.2 (first node version supported by Azure Functions)
- Node 8 (LTS)
- Node 10
Azure Functions runtime v1 and v2 beta are both supported.
Apache 2.0 © Yves Merlicco