amygdala icon indicating copy to clipboard operation
amygdala copied to clipboard

Add an option for appending trailing slash

Open shangxiao opened this issue 10 years ago • 1 comments

Django will redirect if missing trailing slashes, but this will only work for GET. Redirects will also not work if doing a cross origin request while developing (eg localhost:4000 -> localhost:8000)

shangxiao avatar Mar 10 '15 05:03 shangxiao

Some more info: I tried removing the trailing slashes from my DRF router, however there are assumptions in amygdala that the urls specified in the schema config will always have a trailing slash: https://github.com/lincolnloop/amygdala/blob/master/amygdala.js#L130

shangxiao avatar Mar 10 '15 07:03 shangxiao