Implemented static middleware