dolphins7.skeleton/server/lib/twenty/server/rack.rb
0x1eef 2e8cf6e333 Drop 'twenty-' prefix from toplevel directories
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.
2024-04-21 20:11:25 -03:00

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