Skip to content

Commit

Permalink
fix: api url에서 / 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
yjoonjang committed May 7, 2024
1 parent 90b4156 commit 76f6cd0
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
8 changes: 4 additions & 4 deletions accounts/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

# TODO swagger에 뜨는 api 관리
urlpatterns = [
path("/kakao", views.kakao_login, name="kakao_login"),
path("kakao", views.kakao_login, name="kakao_login"),
path(
"/kakao/login",
"kakao/login",
views.KakaoLoginView.as_view(),
name="kakao_login_todjango",
),
path("/update", views.UpdateUserInfoView.as_view(), name="update_user_info"),
path("/user/me", views.GetUserInfoView.as_view(), name="get_user_info"),
path("update", views.UpdateUserInfoView.as_view(), name="update_user_info"),
path("user/me", views.GetUserInfoView.as_view(), name="get_user_info"),
]
10 changes: 5 additions & 5 deletions memos/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

urlpatterns = [
path("", views.PostMemoView.as_view(), name="post_memo"),
path("/all", views.GetAllMemoView.as_view(), name="get_all_memos"),
path("/<int:pk>", views.GetMemoDetailView.as_view(), name="memo-detail"),
path("/update/<int:pk>", views.UpdateMemoView.as_view(), name="scrap-memo"),
path("/delete/<int:pk>", views.DeleteMemoView.as_view(), name="delete-memo"),
path("/search", views.SearchMemoView.as_view(), name="search-memo"),
path("all", views.GetAllMemoView.as_view(), name="get_all_memos"),
path("<int:pk>", views.GetMemoDetailView.as_view(), name="memo-detail"),
path("update/<int:pk>", views.UpdateMemoView.as_view(), name="scrap-memo"),
path("delete/<int:pk>", views.DeleteMemoView.as_view(), name="delete-memo"),
path("search", views.SearchMemoView.as_view(), name="search-memo"),
]
6 changes: 3 additions & 3 deletions resumai/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ def preprocessing_filter_spec(endpoints):
urlpatterns = [
path("", kakao_login_page, name="home"),
path("admin/", admin.site.urls),
path("accounts", include("accounts.urls")),
path("accounts/", include("accounts.urls")),
path("registration/", include("dj_rest_auth.registration.urls")),
path("memos", include("memos.urls")),
path("resume", include("resume.urls")),
path("memos/", include("memos.urls")),
path("resume/", include("resume.urls")),
# swagger 관련
path("api/schema/", SpectacularAPIView.as_view(), name="schema"),
path(
Expand Down
18 changes: 9 additions & 9 deletions resume/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@


urlpatterns = [
path("/all", views.GetAllResumeView.as_view(), name="get_all_resume"),
path("/guidelines", views.GetGuidelinesView.as_view(), name="get_guidelines"),
path("/generate", views.GenerateResumeView.as_view(), name="generate_resume"),
path("all", views.GetAllResumeView.as_view(), name="get_all_resume"),
path("guidelines", views.GetGuidelinesView.as_view(), name="get_guidelines"),
path("generate", views.GenerateResumeView.as_view(), name="generate_resume"),
# path("", views.PostResumeView.as_view(), name="post_resume"),
path("/update/<int:id>", views.UpdateResumeView.as_view(), name="update_resume"),
path("/scrap/<int:id>", views.ScrapResumeView.as_view(), name="scrap_resume"),
path("/<int:id>/chat", views.ChatView.as_view(), name="chat"),
path("/<int:pk>", views.GetResumeView.as_view(), name="update_resume"),
path("update/<int:id>", views.UpdateResumeView.as_view(), name="update_resume"),
path("scrap/<int:id>", views.ScrapResumeView.as_view(), name="scrap_resume"),
path("<int:id>/chat", views.ChatView.as_view(), name="chat"),
path("<int:pk>", views.GetResumeView.as_view(), name="update_resume"),
path(
"/<int:pk>/chatHistory",
"<int:pk>/chatHistory",
views.GetChatHistoryView.as_view(),
name="get_chat_history",
),
path("/delete/<int:pk>", views.DeleteResumeView.as_view(), name="delete_resume"),
path("delete/<int:pk>", views.DeleteResumeView.as_view(), name="delete_resume"),
]

0 comments on commit 76f6cd0

Please sign in to comment.