Added GET and POST endpoints