Skip to content

Commit 586613b

Browse files
committed
fix label encoding
1 parent eeb0b52 commit 586613b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ def get_property_mapping(property_id):
1919
return jsonify(mapping)
2020
return jsonify({'error': 'Property not found'})
2121

22-
@app.route('/search/items/<label>')
22+
@app.route('/search/items/<path:label>')
2323
def get_items(label):
2424
results = search_items(label)
2525
return jsonify(results)
2626

27-
@app.route('/search/properties/<label>')
27+
@app.route('/search/properties/<path:label>')
2828
def get_properties(label):
2929
results = search_properties(label)
3030
return jsonify(results)

0 commit comments

Comments
 (0)