initial implementation of REST's index route