Commit 7aa8f395 authored by Martins Berzins's avatar Martins Berzins
Browse files

Small naming fixes

parent 16337496
No preview for this file type
No preview for this file type
......@@ -16,14 +16,14 @@ import com.example.calendar.repo.EventRepo;
import java.util.List;
public class eventController {
public class EventController {
EventRepo eventRepo;
@GetMapping(value = "/addNewEvent")
@GetMapping(value = "/add-new-event")
public String addNewEventGet(Model models, Event event)
//TODO Var pievienot, ka default date radaas shodienas datums, lidzigi ar laiku.
......@@ -33,7 +33,7 @@ public class eventController {
return "addNewEvent";
@PostMapping(value = "/addNewEvent")
@PostMapping(value = "/add-new-event")
public String addNewEventPost(Event event)
//TODO japievieno events konkretajam calendaram kuraa ir user
......@@ -5,7 +5,7 @@
<h2>Add New Event</h2>
<form action="#" th:action="@{addNewEvent}" th:object="${event}" method="post">
<form action="#" th:action="@{/add-new-event}" th:object="${event}" method="post">
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment