-
Notifications
You must be signed in to change notification settings - Fork 1
Variables in Paths
Astremy edited this page Feb 4, 2020
·
1 revision
You can get arguments in the path. Exemple, you can get the username of the user in " /profile/'username' ".
Use the var format in the path, and get in the function
@site.path("/profile/{var}")
def index(var):
return f"Profile of {var}"