Bagaimana cara memanggil URL_FOR dengan benar dan menentukan parameter jalur
/students
/students/<int:id>
SAMER SAEID
/students
/students/<int:id>
<a href="{{ url_for('student_by_id', id=student.id) }}">{{ student.id }}</a>
@application.route("/students/<int:id>", methods=["GET", "POST"])
def student_by_id(id):
return {"student": id}
@application.route("/students")
def all_students():
return {"students": "all"}