Modify the app: registration with RESTful method