|
@@ -1,27 +1,13 @@
|
1
|
1
|
package com.ziplinegreen.vault.Controller;
|
2
|
2
|
|
3
|
|
-import com.sun.deploy.net.HttpResponse;
|
4
|
|
-import com.ziplinegreen.vault.Exception.ResourceNotFoundException;
|
5
|
3
|
import com.ziplinegreen.vault.Model.Post;
|
6
|
|
-import com.ziplinegreen.vault.Model.User;
|
7
|
|
-import com.ziplinegreen.vault.Repository.PostRepository;
|
8
|
|
-import com.ziplinegreen.vault.Repository.UsersRepository;
|
9
|
4
|
import com.ziplinegreen.vault.Service.PostService;
|
10
|
|
-import com.ziplinegreen.vault.Service.UserService;
|
11
|
5
|
import org.springframework.beans.factory.annotation.Autowired;
|
12
|
|
-import org.springframework.data.domain.Page;
|
13
|
|
-import org.springframework.data.domain.Pageable;
|
14
|
|
-import org.springframework.http.HttpStatus;
|
15
|
6
|
import org.springframework.http.ResponseEntity;
|
16
|
|
-import org.springframework.messaging.handler.annotation.DestinationVariable;
|
17
|
7
|
import org.springframework.messaging.handler.annotation.MessageMapping;
|
18
|
8
|
import org.springframework.messaging.handler.annotation.SendTo;
|
19
|
|
-import org.springframework.stereotype.Controller;
|
20
|
9
|
import org.springframework.web.bind.annotation.*;
|
21
|
10
|
|
22
|
|
-import javax.validation.Valid;
|
23
|
|
-import java.util.Set;
|
24
|
|
-
|
25
|
11
|
@RestController
|
26
|
12
|
public class PostController {
|
27
|
13
|
|