File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import Link from "next/link" ;
12import { useState } from "react" ;
23
34import { 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 >
Original file line number Diff line number Diff line change 11from 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 ([])
710def ping (request ):
811 return HttpResponse ("Pong!" , status = 200 )
You can’t perform that action at this time.
0 commit comments