Moved route function to controllers dir

Now it's more of an MVC framework