@amirprestreshi/route-dh@1.0.7
latest
A straightforward routing and static file handler for Deno.
default
route-dh
f
DH_defineAssetsPaths
Function to set paths for your root and assets
f
DH_defineCacheControllPaths
Function to set cache-control example: DH_defineCacheControllPaths({ images: 'private, max-age=1000' })
f
DH_defineRoutes
'Set the function for your desired route, example:
f
DH_defineStatusPagesPaths
Function to set paths for files to be served for status codes (by default will return text/plain with status code)
f
DH_requestHandler
Function to link all routes for (GET DELETE POST PUT PATCH) example: