ire4ever1190 / mike

The new and improved mikero web framework
35 stars 1 forks source link

Public files #6

Closed ire4ever1190 closed 1 year ago

ire4ever1190 commented 1 year ago

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)