Permalink
Browse files

Assorted small changes. (POST /spaces/new instead of POST /spaces)

  • Loading branch information...
1 parent 7725b81 commit 1f92bb05d3f2923a0742fc619e7eb3f0fd9e1d01 Tim Garvin committed Nov 6, 2011
View
1 src/main/java/edu/rit/taskers/controller/PeopleController.java
@@ -30,7 +30,6 @@
*/
@RequestMapping(method = RequestMethod.GET)
public ModelAndView getAllContacts(@CookieValue("SPACE") int id) {
- //TODO - Session space ID
ModelAndView peopleJspAndContactsPage = new ModelAndView("people", "allcontacts", contactDao.findBySpace(id));
return peopleJspAndContactsPage;
}
View
2 src/main/java/edu/rit/taskers/controller/SpaceController.java
@@ -69,7 +69,7 @@ public String getContactDetails(@PathVariable int id, Principal principal) {
* Update the space details
* @return if Space was updated successfully
*/
- @RequestMapping(method = RequestMethod.PUT)
+ @RequestMapping(value="/{id}", method = RequestMethod.PUT)
public boolean updateSpace() {
//TODO figure out if PUT is the best option
return true;

0 comments on commit 1f92bb0

Please sign in to comment.