Created
June 1, 2010 08:56
-
-
Save hojberg/420739 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = wrench.appify({ | |
init: function () { | |
// this will run after in the boot up process initiated by app.run(); | |
}, | |
users: { | |
list: route("users/list/").to(function () { | |
// fetch all the users and show them on the page | |
}), | |
show: route("users/show/:id").to(function (params) { | |
// find the user via params['id'] | |
}) | |
} | |
}); | |
app.run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment