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;
@Controller
public class eventController {
public class EventController {
@Autowired
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 @@
</head>
<h2>Add New Event</h2>
<body>
<form action="#" th:action="@{addNewEvent}" th:object="${event}" method="post">
<form action="#" th:action="@{/add-new-event}" th:object="${event}" method="post">
<table>
<tr>
<td>Title:</td>
......
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