Yes:
map "http://example.com"; do
run App
end
// Magnus Holm
On Wed, Jan 1, 2014 at 7:16 AM, Tim Uckun wrote:
> Can you match on top level domains?
>
>
> On Wed, Jan 1, 2014 at 1:05 AM, Magnus Holm wrote:
>>
>> Sorry for the late reply.
>>
>> The easiest way is to use a config.ru file (this
Can you match on top level domains?
On Wed, Jan 1, 2014 at 1:05 AM, Magnus Holm wrote:
> Sorry for the late reply.
>
> The easiest way is to use a config.ru file (this is how you probably
> run your Camping app anyway):
>
> # in config.ru
> map "/hello" do
> run Hello
> end
>
> map
Sorry for the late reply.
The easiest way is to use a config.ru file (this is how you probably
run your Camping app anyway):
# in config.ru
map "/hello" do
run Hello
end
map "/sinatra" do
run Sinatra::Application.new
end
// Magnus Holm
On Sun, Dec 8, 2013 at 12:41 PM, Tim Uc
The camping book says this
You can also use Rack::URLMap to plug a whole bunch of different apps in to
one folder. A camping app here, a rails project there, a sinatra doodad
over there in the corner messing up the whole global namespace. The
possibilities are severely limited!
Does anybody have
4 matches
Mail list logo