You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was experimenting with this. After running denofunc init and I changed the hello_world file like below. As far as I can tell, route parameters aren't passed into the function. Am I missing something?
import { AzureFunctionsContext } from "../deps.ts";
async function handler(context: AzureFunctionsContext) {
context.res = {
status: 200,
body: `${context.bindingData.category}/${context.bindingData.id}`
};
}
export default {
handler,
// Name of the function
name: "hello_world",
metadata: {
bindings: [{
type: "httpTrigger",
name: "req",
direction: "in",
methods: ["get"],
route: "products/{category:alpha}/{id:int?}"
}, {
type: "http",
name: "res",
direction: "out"
}]
}
// By default, it's an HTTP function. For other functions, add a `metadata` property
// with the contents of function.json that describes the trigger and bindings.
// https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-example
};
The text was updated successfully, but these errors were encountered:
Yes. This is due to a regression. Fix will be rolling out next week and core tools will be updated ~2 weeks from now.
Until then please pin runtime version to : 3.0.13353 . Thanks!
I was experimenting with this. After running
denofunc init
and I changed the hello_world file like below. As far as I can tell, route parameters aren't passed into the function. Am I missing something?The text was updated successfully, but these errors were encountered: