gramex.yaml 402 Bytes
Newer Older
S Anand's avatar
S Anand committed
1 2 3 4 5 6 7 8
# Run Gramex in this directory to test formhandler

url:
  formhandler-data:
    pattern: /formhandler-data
    handler: FormHandler
    kwargs:
      url: test/formhandler.csv
9
      id: ID
10 11 12 13
  dropdown-data:
    pattern: /data-list
    handler: FunctionHandler
    kwargs:
14
      function: json.dumps(['bengaluru "', 'hyderabad', 'mumbai', 'delhi'])
15 16
      headers:
        Content-Type: application/json