split config and routes mapping to files and auth skeleton