Skip to content

Instantly share code, notes, and snippets.

View rrmdn's full-sized avatar
🏠
Working from home

Rizki Romadhoni rrmdn

🏠
Working from home
View GitHub Profile
var UsersController = {
"index": function(){
},
"show": function(){
}
"new": function(){
}
var routes = {
"/users": function(){},
"/users/:id": function(){},
"/pages": function(){}
}
for(key in routes){
Path.map(key).to(routes[key]);
}