Skip to content

The open alternative to Salesforce, designed for AI.

401 B
Raw Blame
import { defineLogicFunction } from 'twenty-sdk/define';

const rootHandler = () => {
  return 'root-function-result';
};

export default defineLogicFunction({
  universalIdentifier: 'f0f1f2f3-f4f5-4000-8000-000000000001',
  name: 'root-function',
  timeoutSeconds: 5,
  handler: rootHandler,
  httpRouteTriggerSettings: {
    path: '/root',
    httpMethod: 'GET',
    isAuthRequired: false,
  },
});