initial setting at 20-Aug-2025

This commit is contained in:
2025-08-20 19:15:19 +09:00
parent eab529bd3b
commit 1ba305641e
149 changed files with 170449 additions and 1802 deletions

89
rog/urls.py Normal file → Executable file
View File

@ -3,6 +3,20 @@ from rest_framework import urlpatterns
from rest_framework.routers import DefaultRouter
from .views import CategoryByNameView, LocationViewSet, Location_lineViewSet, Location_polygonViewSet, Jpn_Main_PerfViewSet, LocationsInPerf, ExtentForSubPerf, SubPerfInMainPerf, ExtentForMainPerf, LocationsInSubPerf, CatView, RegistrationAPI, LoginAPI, UserAPI, UserActionViewset, UserMakeActionViewset, UserDestinations, UpdateOrder, LocationInBound, DeleteDestination, CustomAreaLocations, GetAllGifuAreas, CustomAreaNames, userDetials, UserTracksViewSet, CatByCity, ChangePasswordView, GoalImageViewSet, CheckinImageViewSet, ExtentForLocations, DeleteAccount, PrivacyView, RegistrationView, TeamViewSet,MemberViewSet,EntryViewSet,RegisterView, VerifyEmailView, NewEventListView,NewEvent2ListView,NewCategoryListView,CategoryListView, MemberUserDetailView, TeamMembersWithUserView,MemberAddView,UserActivationView,RegistrationView,TempUserRegistrationView,ResendInvitationEmailView,update_user_info,update_user_detail,ActivateMemberView, ActivateNewMemberView, PasswordResetRequestView, PasswordResetConfirmView, NewCategoryViewSet,LocationInBound2,UserLastGoalTimeView,TeamEntriesView,update_entry_status,get_events,get_zekken_numbers,get_team_info,get_checkins,update_checkins,export_excel,debug_urls,get_ranking, all_ranking_top3
from .views_apis.api_auth import check_event_code
from .views_apis.api_teams import register_team,update_team_name,team_class_changer,team_register,zekken_max_num,zekken_double_check,get_team_list,get_zekken_list
from .views_apis.api_play import input_cp,get_checkpoint_list,start_from_rogapp,checkin_from_rogapp,goal_from_rogapp
from .views_apis.api_edit import remove_checkin_from_rogapp,add_checkin,delete_checkin,move_checkin,goal_checkin,change_goal_time_checkin,change_goal_time_checkin,get_checkin_list,service_check_true,service_check_false,get_yet_check_service_list
from .views_apis.api_waypoint import get_waypoint_datas_from_rogapp,get_route,fetch_user_locations,get_all_routes
from .views_apis.api_routes import top_users_routes,generate_route_image
from .views_apis.api_events import get_start_point,analyze_point
from .views_apis.api_monitor import realtime_monitor, realtime_monitor_zekken_narrow
from .views_apis.api_ranking import get_ranking,all_ranking_top3
from .views_apis.api_photos import get_photo_list, get_photo_list_prod
from .views_apis.api_scoreboard import get_scoreboard,download_scoreboard,reprint,make_all_scoreboard,make_cp_list_sheet
from .views_apis.api_simulator import rogaining_simulator
from .views_apis.api_test import test_gifuroge,practice
from django.urls import path, include
from knox import views as knox_views
@ -86,9 +100,9 @@ urlpatterns += [
path('privacy/', PrivacyView, name='privacy-view'),
#path('goalimage/', GoalImageViewSet.as_view(), name='goalimage')
path('verify-email/<uuid:verification_code>/', VerifyEmailView.as_view(), name='verify-email'),
path('categories/', NewCategoryListView.as_view(), name='category-list'),
# 新しいパス
path('categories/<str:name>/', CategoryByNameView.as_view(), name='category-detail'),
path('categories/<slug:name>/', NewCategoryListView.as_view(), name='category-list'),
path('categories/', NewCategoryListView.as_view(), name='category-list'),
path('new-events/', NewEvent2ListView.as_view(), name='new-event-list'),
path('members/<int:pk>/user/', MemberUserDetailView.as_view(), name='member-user-detail'),
@ -134,6 +148,77 @@ urlpatterns += [
path('api/rankings/<str:event_code>/<str:category_name>/', get_ranking, name='get_ranking'),
path('api/rankings/top3/<str:event_code>/', all_ranking_top3, name='all_ranking_top3'),
# for upper compatible API
## Event
path('check_event_code', check_event_code, name='check_event_code'),
path('getStartPoint', get_start_point, name='get_start_point'),
path('analyze_point', analyze_point, name='analyze_point'),
## Team
path('get_team_list', get_team_list, name='get_team_list'),
path('get_zekken_list', get_zekken_list, name='get_zekken_list'),
path('register_team', register_team, name='register_team'),
path('update_team_name', update_team_name, name='update_team_name'),
path('teamClassChanger', team_class_changer, name='team_class_changer'),
path('teamRegister', team_register, name='team_register'),
path('zekkenMaxNum', zekken_max_num, name='zekken_max_num'),
path('zekkenDoubleCheck', zekken_double_check, name='zekken_double_check'),
## Play
path('input_cp', input_cp, name='input_cp'),
path('start_from_rogapp', start_from_rogapp, name='start_from_rogapp'),
path('checkin_from_rogapp', checkin_from_rogapp, name='checkin_from_rogapp'),
path('goal_from_rogapp', goal_from_rogapp, name='goal_from_rogapp'),
## Edit Play
path('remove_checkin_from_rogapp', remove_checkin_from_rogapp, name='remove_checkin_from_rogapp'),
path('addCheckin', add_checkin, name='add_checkin'),
path('deleteCheckin', delete_checkin, name='delete_checkin'),
path('moveCheckin', move_checkin, name='move_checkin'),
path('goalCheckin', goal_checkin, name='goal_checkin'),
path('changeGoalTimeCheckin', change_goal_time_checkin, name='change_goal_time_checkin'),
path('moveCheckin', move_checkin, name='move_checkin'),
path('changeGoalTimeCheckin', change_goal_time_checkin, name='change_goal_time_checkin'),
path('getCheckinList', get_checkin_list, name='get_checkin_list'),
path('serviceCheckTrue', service_check_true, name='service_check_true'),
path('serviceCheckFalse', service_check_false, name='service_check_false'),
path('getYetCheckSeeviceList', get_yet_check_service_list, name='get_yet_check_service_list'),
## Waypoint
path('get_waypoint_datas_from_rogapp', get_waypoint_datas_from_rogapp, name='get_waypoint_datas_from_rogapp'),
path('getRoute', get_route, name='get_route'),
path('fetchUserLocations', fetch_user_locations, name='fetch_user_locations'),
path('getAllRoutes', get_all_routes, name='get_all_routes'),
path('top_users_routes', top_users_routes, name='top_users_routes'),
path('generate_route_image', generate_route_image, name='generate_route_image'),
path('realtimeMonitor', realtime_monitor, name='realtime_monitor'),
path('realtimeMonitor_zekken_narrow', realtime_monitor_zekken_narrow, name='realtime_monitor_zekken_narrow'),
## Ranking
path('get_ranking', get_ranking, name='get_ranking'),
path('all_ranking_top3', all_ranking_top3, name='all_ranking_top3'),
## PhotoList
path('get_photo_list', get_photo_list, name='get_photo_list'),
path('get_photo_list_prod', get_photo_list_prod, name='get_photo_list_prod'),
path('getCheckpointList', get_checkpoint_list, name='get_checkpoint_list'),
path('makeCpListSheet', make_cp_list_sheet, name='make_cp_list_sheet'),
## Scoreboard
path('getScoreboard', get_scoreboard, name='get_scoreboard'),
path('download_scoreboard', download_scoreboard, name='download_scoreboard'),
path('reprint', reprint, name='reprint'),
path('makeAllScoreboard', make_all_scoreboard, name='make_all_scoreboard'),
## Simulator
path('rogainingSimulator', rogaining_simulator, name='rogaining_simulator'),
## Test
path('test_gifuroge', test_gifuroge, name='test_gifuroge'),
path('practice', practice, name='practice'),
]
if settings.DEBUG: