remove unused methods from controller
@@ -4,7 +4,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
-import org.zstack.header.rest.RESTConstant;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -22,8 +21,8 @@ public class RestServerController {
@RequestMapping(
value = RestConstants.ALL_PATH,
method = {
- RequestMethod.POST, RequestMethod.PUT, RequestMethod.DELETE, RequestMethod.GET,
- RequestMethod.HEAD, RequestMethod.OPTIONS, RequestMethod.PATCH, RequestMethod.TRACE
+ RequestMethod.POST, RequestMethod.PUT, RequestMethod.DELETE,
+ RequestMethod.GET, RequestMethod.HEAD,
}
)
public void api(HttpServletRequest request, HttpServletResponse response) throws IOException, IllegalAccessException, NoSuchMethodException, InvocationTargetException {
