Skip to content

Commit 98dafb1

Browse files
authored
Update views.py
1 parent a3afff0 commit 98dafb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/Django-Backend/linker/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def show_alias_link_info(request, link):
4343
data = {**serializer.data, 'target-url': result.link.url_address}
4444
return Response(data, status=status.HTTP_200_OK)
4545

46-
4746
return Response({"status": "failed", "message": "there is no short link by given url address"}, status=status.HTTP_404_NOT_FOUND)
4847

4948

@@ -56,5 +55,6 @@ def resolve_alias_link(request, link):
5655
if result.exists():
5756
result = result.first()
5857
return HttpResponseRedirect(result.link.url_address)
58+
5959
return Response({"status": "failed", "message": "there is no short link by given url address"}, status=status.HTTP_404_NOT_FOUND)
6060

0 commit comments

Comments
 (0)