Skip to content

Commit

Permalink
add hello api
Browse files Browse the repository at this point in the history
  • Loading branch information
tanqiuliu committed Apr 6, 2020
1 parent 5b8ea82 commit 2a952f7
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.deepwaterl.springreacttypescriptboilerplate;

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

import java.util.Date;

@RestController
public class HelloController {

@GetMapping("/api/hello")
public String hello() {
return "Hello, the time at the server is now " + new Date() + "\n";
}
}

0 comments on commit 2a952f7

Please sign in to comment.