Skip to content

Commit

Permalink
SMA-4-Added API controller with 'hello' endpoint returning 'Hello Wor…
Browse files Browse the repository at this point in the history
…ld' string.
  • Loading branch information
markpernia committed Jan 17, 2024
1 parent 30bc09a commit d76a661
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.sportsmatch.backend.controllers;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api/v1")
public class APIController {

@GetMapping("/hello")
public String hello() {
return "Hello World";
}
}

0 comments on commit d76a661

Please sign in to comment.