weet / browser-client

A browser client for weet built with Ember.js
MIT License
0 stars 0 forks source link

change url ember requests data from #1

Open Permafacture opened 10 years ago

Permafacture commented 10 years ago

The working ember/django project that this one is based on used the urls /#/whatever or /#/api/whatever

When I try these urls the server gives a 200 code for "/", ie, index.html

try having ember access /#/meetings/timothy or /#/api/meetings/timothy

put the files in /opt/gmm_up/static so that it contains index.html and the assets folder (there are other folders and files in static, btw, so don't overwrite the whole folder )

I've loaded the airports.json from http://bl.ocks.org/mbostock/4408297 at that meeting.

Permafacture commented 10 years ago

Actually, the # is probably some internal ember thing. I'm pretty sure the server api doesn't reply at those urls, but ember picks it up and asks the appropriate url. check out how the example does it.

https://github.com/toranb/complex-ember-data-example/blob/master/codecamp/static/script/app/codecamp.js