I fight in two corners over the choice of how to do REST api
I am writing in Python + Flask + MongoDB
Option 1
@app.route("/api/settings/", methods=["POST"]) def ΠΌΠ΅ΡΠΎΠ΄1: Π²ΡΠΏΠΎΠ»Π½Π΅Π½ΠΈΠ΅ ΠΊΡΡΠΊΠ° ΠΊΠΎΠ΄Π°. @app.route("/api/setup/", methods=["POST"]) def ΠΌΠ΅ΡΠΎΠ΄2: Π²ΡΠΏΠΎΠ»Π½Π΅Π½ΠΈΠ΅ ΠΊΡΡΠΊΠ° ΠΊΠΎΠ΄Π°. Option 2
@app.route("/api/<method>", methods=["POST"]) def ΠΌΠ΅ΡΠΎΠ΄3(method): if method == "settings": Π²ΡΠΏΠΎΠ»Π½Π΅Π½ΠΈΠ΅ ΠΊΡΡΠΊΠ° ΠΊΠΎΠ΄Π° elif method == "setup": Π²ΡΠΏΠΎΠ»Π½Π΅Π½ΠΈΠ΅ ΠΊΡΡΠΊΠ° ΠΊΠΎΠ΄Π° Help determine what to choose, and why you should choose one or another option?