Class HistoryController

java.lang.Object
com.is.findyourplace.controller.gestioneRicerca.HistoryController

@Controller public class HistoryController extends Object
Gestisce la cronologia delle ricerche.
  • Constructor Details

    • HistoryController

      public HistoryController(HistoryService historyService, AccountService accountService)
      Construttore del controller.
      Parameters:
      accountService - Service per la gestione degli account.
      historyService - Service per la cronologia delle ricerche.
  • Method Details

    • searchHistory

      @GetMapping("/searchHistory") public String searchHistory(org.springframework.ui.Model model)
      Mapping per la pagina della cronologia di ricerche.
      Parameters:
      model - Model
      Returns:
      ricerca/searchHistory.html
    • deleteSearch

      @PostMapping("/searchHistory/deleteSearch") @ResponseBody public org.springframework.http.ResponseEntity<Map<String,Object>> deleteSearch(@RequestParam Long idRicerca)
      Mapping per cancellare una ricerca dalla cronologia.
      Parameters:
      idRicerca - id della ricerca
      Returns:
      200 OK / 401 UNAUTHORIZED