Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…ient updates
  • Loading branch information...
commit c1d6daa58a199c42daef35e67e3bf8d1367c4a84 1 parent 025f629
@kborchers authored
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
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>
Please sign in to comment.
Something went wrong with that request. Please try again.