first small testing prototype

This commit is contained in:
2025-10-01 10:56:19 +02:00
parent 4742fcd21c
commit 7b88efb425
3 changed files with 35 additions and 10 deletions

View File

@@ -2,12 +2,13 @@ package de.pnreichmuth.timekeep_backend;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@SpringBootApplication
public class TimekeepBackendApplication {
static void main(String[] args) {
public static void main(String[] args) {
SpringApplication.run(TimekeepBackendApplication.class, args);
}
}

View File

@@ -0,0 +1,23 @@
package de.pnreichmuth.timekeep_backend;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Date;
@RestController
public class TimekeepRestController {
public TimekeepRestController() {
}
@GetMapping("/time/test")
public Testclass timeEndpoint(){
return new Testclass("TEST",1);
}
@GetMapping("/time")
public Date getTime(){
return new Date();
}
}