thaitype / nammatham

Azure Functions Framework
https://nammatham.thaitype.dev/
MIT License
67 stars 2 forks source link

Add Response builder helper function for Azure Functions adapter #97

Closed mildronize closed 7 months ago

mildronize commented 10 months ago
import { initNammatham } from '@nammatham/core';
import { AzureFunctionsAdapter } from '@nammatham/azure-functions';

const n = initNammatham.create(new AzureFunctionsAdapter());
export const func = n.func;

export default func
  .httpGet('hello')
  .handler(({ res }) => res.text('OK'));
mildronize commented 7 months ago

Done with #131