banners are show now !

This commit is contained in:
Senad Uka
2015-03-29 12:46:51 +02:00
parent b90b4035aa
commit 7acf1a8d6c
16 changed files with 187 additions and 32 deletions

View File

@@ -0,0 +1,8 @@
var Backbone = require('backbone');
var Globals = require('../globals');
var LinkBanner = Backbone.Model.extend({
urlRoot : Globals.ApiUrl + '/link_banner'
});
module.exports = LinkBanner;

View File

@@ -0,0 +1,10 @@
var Backbone = require('backbone'),
LinkBanner = require('./linkBanner'),
Globals = require('../globals');
var LinkBannerCollection = Backbone.Collection.extend({
model: LinkBanner,
url: Globals.ApiUrl + '/link_banner'
});
module.exports = LinkBannerCollection;

View File

@@ -20,4 +20,4 @@ var Place = Backbone.Model.extend({
module.exports = Place;
module.exports = Place;