mirror of
https://github.com/0xShay/halflink.git
synced 2026-01-12 05:23:24 +00:00
Initialise Spring API with ShortLink endpoints
This commit is contained in:
21
backend/src/main/java/services/shay/Halflink.java
Normal file
21
backend/src/main/java/services/shay/Halflink.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package services.shay;
|
||||
|
||||
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;
|
||||
|
||||
@RestController
|
||||
@SpringBootApplication
|
||||
public class Halflink {
|
||||
|
||||
@GetMapping("/")
|
||||
String home() {
|
||||
return "Halflink API says hello!";
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(Halflink.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user