export const myApp = app.addFunctions({ blob, hello });
// Register functions via object, may support type infer in the future
// type Endpoint = InferEndpoint<typeof myApp>
const userFunction = app.createFunctions({
user: func.httpGet().handler(({ res }) => res.text('OK'));
});
app.mergeFunctions(userFunction);
Considering the new way to register functions
Do with:
97
Before
After
Note: remove function name from
httpGet
first argExisting way
Single File
Standalone Mode (Like azure Function node.js library)
without using nammathamApp;