11 Commits

Author SHA1 Message Date
Aron Carroll
164b56531c Merge branch 'feature/node' into 'feature/spike'
Conflicts:
	lib/app.js
	lib/handlers.js
	package.json
2012-06-10 12:24:02 +01:00
Aron Carroll
87a99bb670 Make helpers.getUrlForBin() always return a valid url 2012-06-03 22:45:09 +01:00
Aron Carroll
6f16cfa3ac Detect sub-domains and update relevant url settings 2012-05-26 19:14:58 +01:00
Remy Sharp
77fe7e7d7e Fixed path issues - fixes saving from changed urls, template restore, etc.
Basically, the ballache.
2012-05-25 17:03:26 +01:00
Aron Carroll
bee06c526e Add the .ajax flag to the Response object as well as Request 2012-05-20 21:45:17 +01:00
Aron Carroll
f25efb4455 Fix issue in helpers.production
Now correctly check the app.PRODUCTION rather than "this" which will be
undefined.
2012-05-20 21:43:58 +01:00
Aron Carroll
96353b35bc Add CORS support for cross origin GET requests 2012-05-18 16:55:34 +01:00
Aron Carroll
ddebd2307f Initial work on the server side spike code
Needs a massive code refactor in the near future though :)
2012-05-04 16:32:39 +01:00
Aron Carroll
a563f2d274 Update app.js to handle path prefix
This essentially mounts the application as middleware within another
connect server under the specified prefix. This means that when
redirecting that helpers.url() must be used to get the full path and
req.path will be missing the prefix.
2012-05-01 00:15:44 +01:00
Aron Carroll
fe5eae899c Move state onto Request instances via helper middleware
This seems a little hairy but essentially avoids creating modules
with factory functions which seems very clunky. We now provide various
helper functions that are bound to the application state such as
url, routing and models via the request object. This is massively
overloading this object but seems to be the common way in Express
apps to pass state into handlers.
2012-04-30 23:20:03 +01:00
Aron Carroll
e35adaa7cc Add middleware module for common middleware
(Need to work on my messages)
2012-04-20 15:03:03 +01:00