diff options
author | Vitaly Takmazov | 2016-12-12 22:49:10 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-12-12 22:49:48 +0300 |
commit | 7924b7d5f95d38b0022e0fdfcab37639c84c88fb (patch) | |
tree | 8dae5e05088f048aefd82e9f03ce47d371616156 /juick-crosspost/src/main/java/com/juick/components | |
parent | bc756f16b774bb9363b777e9071e17328afb27d6 (diff) |
@Controller + @ResponseBody = @RestController
Diffstat (limited to 'juick-crosspost/src/main/java/com/juick/components')
-rw-r--r-- | juick-crosspost/src/main/java/com/juick/components/controllers/StatusController.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/juick-crosspost/src/main/java/com/juick/components/controllers/StatusController.java b/juick-crosspost/src/main/java/com/juick/components/controllers/StatusController.java index 3d8636fc..589a6145 100644 --- a/juick-crosspost/src/main/java/com/juick/components/controllers/StatusController.java +++ b/juick-crosspost/src/main/java/com/juick/components/controllers/StatusController.java @@ -3,18 +3,16 @@ package com.juick.components.controllers; import com.juick.components.Crosspost; import com.juick.server.helpers.Status; import org.springframework.http.MediaType; -import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.bind.annotation.RestController; import javax.inject.Inject; /** * Created by vitalyster on 24.10.2016. */ -@Controller -@ResponseBody +@RestController public class StatusController { @Inject Crosspost crosspost; |