move static files routing to route
merge public directory config