Adds in a servePublic function which serves a folder of files. Can then be compiled with -d:mikeStaticFiles or passing true to staticFiles parameter to have all the files read in a compile time so it becomes a standalone binary
Also cleans up the error system which was causing annoyances. Now an exception can have a status code associated with it (e.g. NotFoundError automatically returns 404)
Adds in a
servePublic
function which serves a folder of files. Can then be compiled with-d:mikeStaticFiles
or passingtrue
tostaticFiles
parameter to have all the files read in a compile time so it becomes a standalone binaryAlso cleans up the error system which was causing annoyances. Now an exception can have a status code associated with it (e.g.
NotFoundError
automatically returns 404)