goweb icon indicating copy to clipboard operation
goweb copied to clipboard

Why aren't dotted values allowed for resource ids?

Open qur opened this issue 10 years ago • 2 comments

goweb seems to always assume that a . means a file extension - but when using a controller this doesn't really make sense.

e.g. DELETE /something/10.0.0.1 would call somethingController.Delete("10", ctx) - which seems really very wrong ...

qur avatar May 15 '14 20:05 qur

goweb allows you to override the codec being used by passing a different extension (.xml,.json).

Obviously this is a problem for you. Do you have any thoughts on a way to handle this differently?

tylerstillwater avatar May 15 '14 22:05 tylerstillwater

How about adding a flag to HttpHandler that can cause WebContext to use a new Path constructor that doesn't split out the extension instead of NewPath? Whilst it might be nice to be able to select on a per Controller basis, I can't see a practical way to accomplish that, and don't myself need to.

qur avatar May 27 '14 13:05 qur