0x1eef
2e8cf6e333
The directories twenty-{server,client,cli} have been renamed to not include 'twenty-'. The gems are still published with the twenty- prefix, otherwise a collision is impossible to avoid. This commit makes it slightly easier to generalize twenty.
15 lines
277 B
Ruby
15 lines
277 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Twenty::Rack
|
|
require "server"
|
|
require_relative "rack/graphql"
|
|
|
|
##
|
|
# @param [Hash] options
|
|
# A hash of server options.
|
|
#
|
|
# @return [Thread]
|
|
def self.server(options = {})
|
|
Server.dir(Twenty.build, options.to_h)
|
|
end
|
|
end
|