We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1505d69 commit d0dbc07Copy full SHA for d0dbc07
backend/main.py
@@ -4,6 +4,7 @@
4
from data.users import lookup_user
5
from endpoints import (
6
do_follow,
7
+ do_unfollow,
8
get_bloom,
9
hashtag,
10
home_timeline,
@@ -54,6 +55,7 @@ def main():
54
55
app.add_url_rule("/profile", view_func=self_profile)
56
app.add_url_rule("/profile/<profile_username>", view_func=other_profile)
57
app.add_url_rule("/follow", methods=["POST"], view_func=do_follow)
58
+ app.add_url_rule("/unfollow/<unfollow_username>", methods=["POST"], view_func=do_unfollow)
59
app.add_url_rule("/suggested-follows/<limit_str>", view_func=suggested_follows)
60
61
app.add_url_rule("/bloom", methods=["POST"], view_func=send_bloom)
0 commit comments