Permalink
Browse files

Update Routes after the AeroGear controller 1.0.0 upgrade and some cl…

…ient updates
  • Loading branch information...
1 parent 025f629 commit c1d6daa58a199c42daef35e67e3bf8d1367c4a84 @kborchers committed Apr 1, 2013
View
6 src/main/java/com/example/aerogearjournal/Routes.java
@@ -51,19 +51,19 @@ public void configuration() throws Exception
.on(RequestMethod.DELETE)
.consumes(JSON)
.produces(JSON)
- .to(NoteEndpoint.class).deleteById(param("id", Long.class));
+ .to(NoteEndpoint.class).deleteById(param(Long.class));
route()
.from("/notes/{id}")
.on(RequestMethod.GET)
.consumes(JSON)
.produces(JSON)
- .to(NoteEndpoint.class).findById(param("id", Long.class));
+ .to(NoteEndpoint.class).findById(param(Long.class));
route()
.from("/notes/{id}")
.on(RequestMethod.PUT)
.consumes(JSON)
.produces(JSON)
- .to(NoteEndpoint.class).update(param("id", Long.class), param(Note.class));
+ .to(NoteEndpoint.class).update(param(Long.class), param(Note.class));
}
View
2 src/main/webapp/scripts/scripts.js
1 addition, 1 deletion not shown because the diff is too large. Please use a local Git client to view these changes.
View
4 src/main/webapp/views/notes.html
@@ -18,5 +18,5 @@
</div>
</div>
</div>
-<button ng-click="previous()">Previous Page</button>
-<button ng-click="next()">Next Page</button>
+<button ng-click="previous()" ng-show="currentPage + 1 > 1">Previous Page</button>
+<button ng-click="next()" ng-show="currentPage + 1 < numberOfPages">Next Page</button>

0 comments on commit c1d6daa

Please sign in to comment.