fixed lint error
added routing for read, create, update and delete function
added routing test with credentials for read, create, update and delete function