Function to bootstrap routes automatically