static maps

sergio <[email protected]> Wed, 18 Apr 2018 17:16:45 +0300
Newsgroups gmane.comp.web.mason.user
Message-ID <[email protected]>
Hello.

I'd like to add static map for specific path. To server all files under 
https://mysite/share statically from "share" folder.


So I've added

     enable "Static",
       path => qr{^/share/},
       root => $poet->root_dir;

to the bin/app.psgi.

Are there other ways?

Is app.psgi the proper place for this or it's better do not edit it?


-- 
sergio.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot