|
@@ -0,0 +1,26 @@
|
|
|
+package ua.be.wee.controller.rest;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import ua.be.wee.model.pt.PT;
|
|
|
+import ua.be.wee.model.repository.PTRepository;
|
|
|
+
|
|
|
+@RestController
|
|
|
+public class PTController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private PTRepository ptRepository;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ @GetMapping("/startTraceEvents")
|
|
|
+ List<PT> allPTs() {
|
|
|
+ return ptRepository.getStartTraceEvents();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+}
|