from werkzeug.routing import FloatConverter as BaseFloatConverter


class FloatConverter(BaseFloatConverter):
    regex = '-?\\d+(\\.\\d+)?'
app.url_map.converters['float'] = FloatConverter
Flask route giving 404 with floating point numbers in the URL