visionmedia / express-resource

Resourceful routing for Express
1.41k stars 140 forks source link

Handle dots in resource ids correctly #27

Closed Swatinem closed 13 years ago

Swatinem commented 13 years ago

Previously a GET /resource/foo.bar.json parsed this into id=foo and format=bar.json This is fixed now and results in id=foo.bar and format=json

tj commented 13 years ago

we should fix this in the express router, ".:format" is special-cased in there so the same tweak should apply

Swatinem commented 13 years ago

Fixed in express.