added  and  into /api to provide RESTful API