add endpoint for table