add get request for hello world

This commit is contained in:
Mika Bomm 2024-08-25 20:57:17 +02:00
parent d743a200d1
commit a0413b2a48

View file

@ -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!";
}
}