--- Begin Message ---
Hi Guys,
Is it possible a Zinc server returns static files within a specific url path
(like the ZnStaticFileServerDelegate) and also returns other logics as shown
with map:#otherPath to: MyWebapp new ?
TIA
Davide
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f13
There is ZnPrefixMappingDelegate you can use.
server
delegate: (ZnPrefixMappingDelegate
map: 'static' to: staticFileDelegate;
map: 'app' to: myApp).
There is also ZnStaticFileDecoratorDelegate if you want to mimick another
typical setup where all urls that resolve to a file get s
--- Begin Message ---
Hi Norbert,
Thank you very much for the suggestion!!
Davide
NorbertHartl wrote
> There is ZnPrefixMappingDelegate you can use.
>
> server
>delegate: (ZnPrefixMappingDelegate
> map: 'static' to: staticFileDelegate;
> map: 'app' to: myApp).
>
> There is also
Hi Davide,
What Norbert says is all correct and useful. Go read the code of the classes he
mentions.
I wanted to add, that fundamentally, all this (dispatching/configuring), is not
difficult to understand or to follow.
Even with the aptly named ZnDefaultServerDelegate you can already do a lot,
--- Begin Message ---
Thanks Sven, crystal clear!
Davide
Sven Van Caekenberghe-2 wrote
> Hi Davide,
>
> What Norbert says is all correct and useful. Go read the code of the
> classes he mentions.
>
> I wanted to add, that fundamentally, all this (dispatching/configuring),
> is not difficult to