Move client side app into public.
@ -1,16 +0,0 @@
|
||||
define(['backbone', 'models/line'], function(Backbone, Line) {
|
||||
|
||||
var LinesCollection = Backbone.Collection.extend({
|
||||
// added callback=? to force jsonp
|
||||
url: "http://tubefeed.herokuapp.com/now.json?callback=?",
|
||||
urls: {
|
||||
now: "http://tubefeed.herokuapp.com/now.json?callback=?",
|
||||
weekend: "http://tubefeed.herokuapp.com/weekend.json?callback=?"
|
||||
},
|
||||
|
||||
model: Line,
|
||||
});
|
||||
|
||||
return LinesCollection;
|
||||
|
||||
});
|
||||
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 387 B After Width: | Height: | Size: 387 B |
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
15
public/javascripts/collections/lines.js
Normal file
@ -0,0 +1,15 @@
|
||||
define(['backbone', 'models/line'], function(Backbone, Line) {
|
||||
|
||||
var LinesCollection = Backbone.Collection.extend({
|
||||
url: "/now.json",
|
||||
urls: {
|
||||
now: "/now.json",
|
||||
weekend: "/weekend.json"
|
||||
},
|
||||
|
||||
model: Line,
|
||||
});
|
||||
|
||||
return LinesCollection;
|
||||
|
||||
});
|
||||