Adds basic GET/POST method for router.