From a0413b2a48255645bd9934f4e651b00e340b4867 Mon Sep 17 00:00:00 2001 From: Mika Bomm Date: Sun, 25 Aug 2024 20:57:17 +0200 Subject: [PATCH] add get request for hello world --- .../java/com/mixel/docusphere/DocuSphereApplication.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/src/main/java/com/mixel/docusphere/DocuSphereApplication.java b/server/src/main/java/com/mixel/docusphere/DocuSphereApplication.java index 94bfb7f..0d40dc1 100644 --- a/server/src/main/java/com/mixel/docusphere/DocuSphereApplication.java +++ b/server/src/main/java/com/mixel/docusphere/DocuSphereApplication.java @@ -2,12 +2,19 @@ package com.mixel.docusphere; 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 +@RestController public class DocuSphereApplication { public static void main(String[] args) { SpringApplication.run(DocuSphereApplication.class, args); } + @GetMapping("/hello") + public String helloWorld() { + return "Hello World!"; + } }