created the api function for listing categories as it is in app.webs4less
created the api function for listing categories as it is in app.webs4less