Behave like Flask for the path route parameter.

It matches the default \w plus the slash character.

Adapted the example with content type detection from Glib.