|
15 | 15 | """
|
16 | 16 | from django.contrib import admin
|
17 | 17 | from django.urls import path, include
|
18 |
| -from django.conf.urls import handler404 |
19 | 18 | from django.conf.urls.static import static
|
20 | 19 |
|
21 |
| -from blog.presentation.api.like_service import LikeService as liked_view |
22 | 20 | from blog.presentation.views.homepage_view import HomepageView as homepage_view
|
23 | 21 | from blog.presentation.views.registration_view import RegistrationView as registration_view
|
24 |
| -from blog.presentation.api.comment_service import CommentService as comment |
25 |
| -from blog.presentation.views.profile_view import ProfileView as profile_view |
26 |
| -from blog.presentation.views.post_view import PostView as post_view |
27 | 22 |
|
28 | 23 | from djangoProject import settings
|
29 | 24 |
|
30 | 25 | urlpatterns = [
|
31 | 26 | path('admin/', admin.site.urls),
|
32 | 27 | path("me/", include("django.contrib.auth.urls")),
|
33 |
| - path("me/register", registration_view.register_page, name='register'), |
| 28 | + path("me/register/", registration_view.register_page, name='register'), |
34 | 29 |
|
35 |
| - # ex: /blog/ |
36 |
| - path('', homepage_view.index, name='home'), |
37 |
| - path('<int:page>', homepage_view.index), |
38 |
| - path('<int:page>/', homepage_view.index), |
39 |
| - path('post/<int:post_id>/', post_view.post, name='post'), |
40 |
| - path('post/<int:post_id>/<int:page>/', post_view.post), |
41 |
| - path('post/<int:post_id>/liked', liked_view.liked), |
42 |
| - path('post/<int:post_id>/comment', comment.comment), |
43 |
| - path('post/<int:post_id>/comment/<int:comm_id>/rm', comment.comment_delete), |
44 |
| - |
45 |
| - path('new/', homepage_view.index, name='new'), |
46 |
| - path('create/', post_view.create_post, name='create'), |
47 |
| - |
48 |
| - |
49 |
| - path('@<str:user_name>/', profile_view.user_profile, name='user_profile'), |
50 |
| - path('@<str:user_name>/<str:activity_type>/', profile_view.user_profile, name='user_profile_type'), |
| 30 | + path('', include('blog.presentation.views.urls')), |
51 | 31 |
|
52 | 32 | path('api/', include('blog.presentation.api.urls')),
|
53 | 33 |
|
|
0 commit comments