Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-CloudComputing
/
C_Team_KhuDrive
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
하재연
2020-06-11 00:52:47 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3065702edfe03f1929f246119bac04b1c4b1a5f8
3065702e
1 parent
d71ba37c
Update views.py
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
backend/api/views.py
backend/api/views.py
View file @
3065702
...
...
@@ -25,8 +25,8 @@ class UserViewSet(viewsets.ModelViewSet):
permission_classes
=
[
permissions
.
IsAuthenticated
]
@csrf_exempt
@action
(
detail
=
False
,
methods
=
[
'POST'
],
permission_classes
=
[
permissions
.
AllowAny
],
url_path
=
'sign
Up'
,
url_name
=
'singU
p'
)
def
sign
U
p
(
self
,
request
):
@action
(
detail
=
False
,
methods
=
[
'POST'
],
permission_classes
=
[
permissions
.
AllowAny
],
url_path
=
'sign
up'
,
url_name
=
'singu
p'
)
def
sign
u
p
(
self
,
request
):
serializer
=
SignUpSerializer
(
data
=
request
.
data
)
if
serializer
.
is_valid
():
user
=
serializer
.
create
(
data
=
request
.
data
)
...
...
Please
register
or
login
to post a comment