Skip to content

Commit 22b1c5e

Browse files
fixed healthchecker (defined auth permissions)
1 parent 5b4ef36 commit 22b1c5e

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

client/src/pages/register.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Link from "next/link";
12
import { useState } from "react";
23

34
import { Button } from "@/components/ui/button";
@@ -35,6 +36,9 @@ export default function Signup() {
3536
<Card className="w-full max-w-sm">
3637
<CardHeader>
3738
<CardTitle>Signup</CardTitle>
39+
<Link href={"/login"}>
40+
<Button variant="link">Back to Login</Button>
41+
</Link>
3842
<CardDescription>
3943
Enter your email below to login to your account
4044
</CardDescription>

server/healthcheck/views.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
from django.http import HttpResponse
2-
from rest_framework.decorators import api_view
2+
from rest_framework.decorators import api_view, authentication_classes
3+
from rest_framework.permissions import AllowAny
4+
35

46

57
# Create your views here.
68
@api_view(["GET"])
9+
@authentication_classes([])
710
def ping(request):
811
return HttpResponse("Pong!", status=200)

0 commit comments

Comments
 (0)