adding return types cc/ @wpalmeri
converting Resource to use Request and Response