Update URL scheme to include /item/*
* Update the router to understand /item/:name routes in addition to v1.0-style parameterized routes * Add support for updating the current URL based upon the item being viewed * Change LandingPage* to ItemPage*
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
###
|
||||
# Crafting Guide - landing_page.coffee
|
||||
# Crafting Guide - item_page.coffee
|
||||
#
|
||||
# Copyright (c) 2014 by Redwood Labs
|
||||
# All rights reserved.
|
||||
@@ -11,7 +11,7 @@ RecipeCatalog = require './recipe_catalog'
|
||||
|
||||
########################################################################################################################
|
||||
|
||||
module.exports = class LandingPage extends BaseModel
|
||||
module.exports = class ItemPage extends BaseModel
|
||||
|
||||
constructor: (attributes={}, options={})->
|
||||
attributes.catalog ?= new RecipeCatalog
|
||||
Reference in New Issue
Block a user