Use vars for routes

This allows routes to be reloaded properly without having to restart the
server.