docs routes and some middleware for static file