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 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@.pharo
>:
Von: Davide Varvello <
varvello@
>
Betreff: Zinc server with static and non-static files Datum: 28. März 2020 um 01:34:13 MEZ An:
pharo-users@.pharo
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
-- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html