Last change
on this file since 9280859 was 044bd76, checked in by Gjoko <goko_kostadinov@…>, 17 months ago |
Adding initial calendar version
|
-
Property mode
set to
100644
|
File size:
470 bytes
|
Line | |
---|
1 | package edu.gjoko.schedlr.controllers.rest;
|
---|
2 |
|
---|
3 | import org.springframework.web.bind.annotation.RequestMapping;
|
---|
4 | import org.springframework.web.bind.annotation.RequestMethod;
|
---|
5 | import org.springframework.web.bind.annotation.RestController;
|
---|
6 |
|
---|
7 | import java.time.LocalDateTime;
|
---|
8 |
|
---|
9 | @RestController
|
---|
10 | public class EventsController {
|
---|
11 |
|
---|
12 | @RequestMapping(value = "/events", method = RequestMethod.GET)
|
---|
13 | public String getEvents() {
|
---|
14 | return LocalDateTime.now().toString();
|
---|
15 | }
|
---|
16 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.