2024-01-23 21:47:51 -08:00
|
|
|
#!/usr/bin/env -S falcon host
|
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2024-01-24 00:20:23 -08:00
|
|
|
load :rack
|
2024-01-23 21:47:51 -08:00
|
|
|
|
|
|
|
hostname = File.basename(__dir__)
|
|
|
|
rack hostname do
|
|
|
|
endpoint Async::HTTP::Endpoint.parse('http://localhost:3000').
|
|
|
|
with(protocol: Async::HTTP::Protocol::HTTP1)
|
|
|
|
end
|