Skip to content

Instantly share code, notes, and snippets.

@RGkevin
Last active August 29, 2015 13:56
Show Gist options
  • Save RGkevin/9220229 to your computer and use it in GitHub Desktop.
Save RGkevin/9220229 to your computer and use it in GitHub Desktop.
WL Project definition
'use strict';
var routes = {
home: '/',
login: '/login',
logout: '/logout',
search: '/search',
vendor: {
all : '/vendor', // list
one: '/vendor/{id}', // profile
edit: '/vendor/{id}/edit',
add: '/vendor/add',
delete: '/vendor/{id}/delete',
seller : {
all: '../seller',
one: '../seller/{id}',
edit: '../seller/{id}/edit',
add: '../seller/add',
client: {
all : '../client', // list
batch: '../client/batch', // add multiple clients to a vendor
one : '../client/{id}' // profile
edit: '../client/{id}/edit',
delete: '../client/{id}/delete',
add: '../client/add'
phone : {
all: '../phone', // list
batch: '../phone/batch', // add multiple phones to a client
one: '../phone/{id}' // profile
edit: '../phone/{id}/edit',
delete: '../phone/{id}/delete',
add: '../phone/add'
}
}
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment