```ruby
require 'sinatra/base'
require 'sinatra/respond_with'
require 'sinatra/json'
require 'json'
require 'llt/form_builder'

class Api < Sinatra::Base
  register Sinatra::RespondWith

  post '/generate' do
    request_json = JSON.parse(request.body.read)
    forms = LLT::FormBuilder.build(*request_json)
    json(forms);
  end
end
```

Add options to allow cross origin POSTs
user
```ruby
require 'sinatra/base'
require 'sinatra/respond_with'
require 'sinatra/json'
require 'json'
require 'llt/form_builder'

class Api < Sinatra::Base
  register Sinatra::RespondWith

  post '/generate' do
    request_json = JSON.parse(request.body.read)
    forms = LLT::FormBuilder.build(*request_json)
    json(forms);
  end

  options '/generate' do
  end
end
```
assistant