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 served from disk and 
any other will be forwarded to you app.

server
   delegate: (ZnStaticFileDecoratorDelegate
      decorate: myApp
      servingFilesFrom: 'static/').

Hope this helps!

Norbert


> Am 28.03.2020 um 01:34 schrieb Davide Varvello via Pharo-users 
> <pharo-users@lists.pharo.org>:
> 
> 
> Von: Davide Varvello <varve...@yahoo.com>
> Betreff: Zinc server with static and non-static files
> Datum: 28. März 2020 um 01:34:13 MEZ
> An: pharo-users@lists.pharo.org
> 
> 
> 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-f1310670.html
> 
> 
> 

Reply via email to