Changed servePublicFile from middleware to router
#25624
+56
−30
servePublicFile from middleware to router
#25624