Browse Source

did some things

David Thornley 6 years ago
parent
commit
b269b690e8

+ 2
- 1
src/main/java/com/ziplinegreen/vault/Controller/PostController.java View File

8
 import org.springframework.messaging.handler.annotation.SendTo;
8
 import org.springframework.messaging.handler.annotation.SendTo;
9
 import org.springframework.web.bind.annotation.*;
9
 import org.springframework.web.bind.annotation.*;
10
 
10
 
11
+@CrossOrigin
11
 @RestController
12
 @RestController
12
 public class PostController {
13
 public class PostController {
13
 
14
 
29
         return postService.createPost(post);
30
         return postService.createPost(post);
30
     }
31
     }
31
 
32
 
32
-    @CrossOrigin
33
+
33
     @GetMapping("/posts/all")
34
     @GetMapping("/posts/all")
34
     public Iterable<Post> getAllPosts() {
35
     public Iterable<Post> getAllPosts() {
35
         return postService.getAllPosts();
36
         return postService.getAllPosts();