Skip to content

Instantly share code, notes, and snippets.

@sebastienblanc
Created February 12, 2013 13:35
Show Gist options
  • Save sebastienblanc/4769923 to your computer and use it in GitHub Desktop.
Save sebastienblanc/4769923 to your computer and use it in GitHub Desktop.
"use strict";
scaffoldtester.factory( "dataService", function() {
return {
customerPipe: AeroGear.Pipeline({
name: "customers",
settings: {
baseURL: "rest/"
}
}).pipes.customers,
customerStore: AeroGear.DataManager({
name: "customer",
type: "SessionLocal",
settings: {
storageType: "localStorage"
}
}).stores.customer,
discountVoucherPipe: AeroGear.Pipeline({
name: "discountvouchers",
settings: {
baseURL: "rest/"
}
}).pipes.discountvouchers,
discountVoucherStore: AeroGear.DataManager({
name: "discountVoucher",
type: "SessionLocal",
settings: {
storageType: "localStorage"
}
}).stores.discountVoucher,
storeOrderPipe: AeroGear.Pipeline({
name: "storeorders",
settings: {
baseURL: "rest/"
}
}).pipes.storeorders,
storeOrderStore: AeroGear.DataManager({
name: "storeOrder",
type: "SessionLocal",
settings: {
storageType: "localStorage"
}
}).stores.storeOrder
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment