add controller
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
package site.ocr.prd.contorllers;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
public class ImgController {
|
||||||
|
|
||||||
|
@PostMapping("img/get-ocr")
|
||||||
|
public String postGetImgOcr(@RequestBody String entity) {
|
||||||
|
//TODO: process POST request
|
||||||
|
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
package site.ocr.prd.contorllers;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
public class LoginController {
|
||||||
|
|
||||||
|
@PostMapping("login/oauth-kakao")
|
||||||
|
public String postMethodName(@RequestBody String entity) {
|
||||||
|
//TODO: process POST request
|
||||||
|
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
0
prd/src/main/java/site/ocr/prd/dto/LoginDto.java
Normal file
0
prd/src/main/java/site/ocr/prd/dto/LoginDto.java
Normal file
Reference in New Issue
Block a user