I have one class that extends org.restlet.Application class. Various requests are handled using this class, say:
- /register
- /login /listitem I perform all operations using POST request and manage all org.restlet.resource.ServerResource classes with annotation @Post("json").
My problem is if requests other than POST come into scenario I got an error like 405 Method Not Allowed. So how to handle other requests without explicitly write code for each annotation?