dalekjs / dalek

[unmaintained] DalekJS Base framework
MIT License
695 stars 63 forks source link

Add base URL configuration parameter #57

Closed tobiastom closed 10 years ago

tobiastom commented 10 years ago

It would be pretty nice if I could define a base URL to which all requests (except otherwise noted) will be send to.

If I configured a base URL like http://github.com/dalekjs and then use open('dalek/issues/new'), the real request would be send to http://github.com/dalekjs/dalek/issues/new.

If I'm inside a development environment I could send them all to http://localhost, if I want to test a deployed application I could easily change it to http://github.com.

asciidisco commented 10 years ago

Maybe we could add this as a property to the Dalekfile & also add a flag to the CMD tools, so that you can tell in which baseUrl (or in fact, configuration) should be used.

Collecting the lines that would need to be changed to get this in; will post an estimation when ready.

tobiastom commented 10 years ago

Implemented in #61.