source: src/main/java/edu/gjoko/schedlr/controllers/rest/EventsController.java@ 044bd76

Last change on this file since 044bd76 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 
1package edu.gjoko.schedlr.controllers.rest;
2
3import org.springframework.web.bind.annotation.RequestMapping;
4import org.springframework.web.bind.annotation.RequestMethod;
5import org.springframework.web.bind.annotation.RestController;
6
7import java.time.LocalDateTime;
8
9@RestController
10public 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.