Skip to content
Snippets Groups Projects
Commit 413bb315 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Refactoring: fixed allowed http methods

parent a36b28b8
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ public class AboutController extends BaseController
return ReturnValues.WHATS_NEW;
}
@RequestMapping("/whatsNewModal/close")
@GetMapping("/whatsNewModal/close")
@Transactional
public String whatsNewModalClose(HttpServletRequest request)
{
......
......@@ -21,10 +21,7 @@ import org.joda.time.DateTime;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.CookieValue;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.*;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
......@@ -72,7 +69,7 @@ public class ReportController extends BaseController
this.filterHelpers = filterHelpers;
}
@RequestMapping
@GetMapping
public String reports(HttpServletRequest request, Model model, @CookieValue(value = "currentDate", required = false) String cookieDate)
{
DateTime date = dateService.getDateTimeFromCookie(cookieDate);
......
......@@ -321,7 +321,7 @@ public class SettingsController extends BaseController
return ReturnValues.ALL_ENTITIES;
}
@RequestMapping("/database/upload")
@PostMapping("/database/upload")
public String upload(WebRequest request, Model model, @RequestParam("file") MultipartFile file)
{
if(file.isEmpty())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment