Skip to content

Commit d0dbc07

Browse files
committed
Add unfollow route
1 parent 1505d69 commit d0dbc07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from data.users import lookup_user
55
from endpoints import (
66
do_follow,
7+
do_unfollow,
78
get_bloom,
89
hashtag,
910
home_timeline,
@@ -54,6 +55,7 @@ def main():
5455
app.add_url_rule("/profile", view_func=self_profile)
5556
app.add_url_rule("/profile/<profile_username>", view_func=other_profile)
5657
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)
5759
app.add_url_rule("/suggested-follows/<limit_str>", view_func=suggested_follows)
5860

5961
app.add_url_rule("/bloom", methods=["POST"], view_func=send_bloom)

0 commit comments

Comments
 (0)