From b7f84e07156013dcdc62050be1592084b75e5d19 Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Tue, 14 Apr 2020 09:57:09 +0200 Subject: [PATCH] Remove HelloWorld and Create User Service --- .../geotime/controller/HelloWorldController.java | 15 --------------- .../src/main/java/de/hft/geotime/user/User.java | 4 ++++ .../java/de/hft/geotime/user/UserController.java | 4 ++++ .../java/de/hft/geotime/user/UserRepository.java | 4 ++++ .../java/de/hft/geotime/user/UserService.java | 4 ++++ 5 files changed, 16 insertions(+), 15 deletions(-) delete mode 100644 backend/src/main/java/de/hft/geotime/controller/HelloWorldController.java create mode 100644 backend/src/main/java/de/hft/geotime/user/User.java create mode 100644 backend/src/main/java/de/hft/geotime/user/UserController.java create mode 100644 backend/src/main/java/de/hft/geotime/user/UserRepository.java create mode 100644 backend/src/main/java/de/hft/geotime/user/UserService.java diff --git a/backend/src/main/java/de/hft/geotime/controller/HelloWorldController.java b/backend/src/main/java/de/hft/geotime/controller/HelloWorldController.java deleted file mode 100644 index ba3eb4e..0000000 --- a/backend/src/main/java/de/hft/geotime/controller/HelloWorldController.java +++ /dev/null @@ -1,15 +0,0 @@ -package de.hft.geotime.controller; - -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -@RestController -public class HelloWorldController { - - @RequestMapping("/hello/{name}") - public String helloWorld(@PathVariable String name) { - return "Hello " + name; - } - -} diff --git a/backend/src/main/java/de/hft/geotime/user/User.java b/backend/src/main/java/de/hft/geotime/user/User.java new file mode 100644 index 0000000..85c6fd7 --- /dev/null +++ b/backend/src/main/java/de/hft/geotime/user/User.java @@ -0,0 +1,4 @@ +package de.hft.geotime.user; + +public class User { +} diff --git a/backend/src/main/java/de/hft/geotime/user/UserController.java b/backend/src/main/java/de/hft/geotime/user/UserController.java new file mode 100644 index 0000000..5bc6f92 --- /dev/null +++ b/backend/src/main/java/de/hft/geotime/user/UserController.java @@ -0,0 +1,4 @@ +package de.hft.geotime.user; + +public class UserController { +} diff --git a/backend/src/main/java/de/hft/geotime/user/UserRepository.java b/backend/src/main/java/de/hft/geotime/user/UserRepository.java new file mode 100644 index 0000000..6d85b5a --- /dev/null +++ b/backend/src/main/java/de/hft/geotime/user/UserRepository.java @@ -0,0 +1,4 @@ +package de.hft.geotime.user; + +public class UserRepository { +} diff --git a/backend/src/main/java/de/hft/geotime/user/UserService.java b/backend/src/main/java/de/hft/geotime/user/UserService.java new file mode 100644 index 0000000..b5bfb51 --- /dev/null +++ b/backend/src/main/java/de/hft/geotime/user/UserService.java @@ -0,0 +1,4 @@ +package de.hft.geotime.user; + +public class UserService { +}