-
Notifications
You must be signed in to change notification settings - Fork 5
/
urls.py
120 lines (117 loc) · 4 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
from django.conf.urls import url
from django.views.decorators.cache import cache_page
import machiavelli.views as views
urlpatterns = [
url(r'^$', views.SummaryView.as_view(), name='summary'),
url(r'^games/all_finished$',
views.AllFinishedGamesList.as_view(),
name="games-all-finished"),
url(r'^games/finished$',
views.MyFinishedGamesList.as_view(),
name="games-my-finished"),
url(r'^games/other_active$',
views.OtherActiveGamesList.as_view(),
name="games-other-active"),
url(r'^games/my_active$',
views.MyActiveGamesList.as_view(),
name="games-my-active"),
url(r'^games/joinable$',
views.JoinableGamesList.as_view(),
name="games-joinable"),
url(r'^games/pending$',
views.PendingGamesList.as_view(),
name='games-pending'),
url(r'^revolutions$',
views.RevolutionList.as_view(),
name='revolution_list'),
url(r'^ranking$',
views.HallOfFameView.as_view(),
name='hall-of-fame'),
url(r'^ranking/(?P<key>[-\w]+)/(?P<val>[-\w]+)$', views.ranking, name='ranking'),
url(r'^overthrow/(?P<revolution_id>\d+)',
views.OverthrowView.as_view(),
name='overthrow'),
url(r'^undo_overthrow/(?P<revolution_id>\d+)',
views.UndoOverthrowView.as_view(),
name='undo_overthrow'),
url(r'^new_game$',
views.CreateGameView.as_view(),
name='new-game'),
url(r'^new_team_game$',
views.CreateTeamGameView.as_view(),
name='new_team_game'),
url(r'^game/(?P<slug>[-\w]+)/invite$',
views.GameInvitationView.as_view(),
name='invite-users'),
url(r'^game/(?P<slug>[-\w]+)/join$',
views.JoinGameView.as_view(),
name='join-game'),
url(r'^game/(?P<slug>[-\w]+)/public$',
views.MakeGamePublic.as_view(),
name='make-public'),
url(r'^game/(?P<slug>[-\w]+)/leave$',
views.LeaveGameView.as_view(),
name='leave-game'),
url(r'^game/(?P<slug>[-\w]+)/log$', views.logs_by_game, name='game-log'),
url(r'^game/(?P<slug>[-\w]+)/areas$',
views.GameAreaListView.as_view(),
name='gamearea-list'),
url(r'^game/(?P<slug>[-\w]+)/turn$',
views.TurnLogListView.as_view(),
name='turn-log-list'),
url(r'^game/(?P<slug>[-\w]+)/excommunicate/(?P<player_id>\d+)',
views.ExcommunicationView.as_view(action="punish"),
name='excommunicate'),
url(r'^game/(?P<slug>[-\w]+)/forgive/(?P<player_id>\d+)',
views.ExcommunicationView.as_view(action="forgive"),
name='forgive-excommunication'),
url(r'^game/(?P<slug>[-\w]+)/lend/(?P<player_id>\d+)',
views.GiveMoneyView.as_view(),
name='lend'),
url(r'^game/(?P<slug>[-\w]+)/borrow$',
views.BorrowMoneyView.as_view(),
name='borrow-money'),
url(r'^game/(?P<slug>[-\w]+)/repay/(?P<credit_id>\d+)$',
views.ReturnMoneyView.as_view(),
name='return-credit'),
url(r'^game/(?P<slug>[-\w]+)/assassination$',
views.AssassinationView.as_view(),
name='assassination'),
url(r'^game/(?P<slug>[-\w]+)/confirm_orders$',
views.ConfirmOrdersView.as_view(),
name='confirm-orders'),
url(r'^game/(?P<slug>[-\w]+)/undo$',
views.UndoActionsView.as_view(),
name='undo-actions'),
url(r'^game/(?P<slug>[-\w]+)/surrender$',
views.SurrenderView.as_view(),
name='surrender'),
url(r'^game/(?P<slug>[-\w]+)/delete_order/(?P<order_id>\d+)$',
views.DeleteOrderView.as_view(),
name='delete-order'),
url(r'^game/(?P<slug>[-\w]+)/expenses$',
views.ExpenseCreateView.as_view(),
name='expenses'),
url(r'^game/(?P<slug>[-\w]+)/undo_expense/(?P<expense_id>\d+)$',
views.ExpenseDeleteView.as_view(),
name='undo-expense'),
url(r'^game/(?P<slug>[-\w]+)/taxation$', views.taxation, name='taxation'),
url(r'^game/(?P<slug>[-\w]+)/whisper$',
views.WhisperCreateView.as_view(),
name='new-whisper'),
url(r'^game/(?P<slug>[-\w]+)/whisper_list$',
views.WhisperListView.as_view(),
name='whisper-list'),
url(r'^game/(?P<slug>[-\w]+)/journal$',
views.EditJournalView.as_view(),
name='edit-journal'),
url(r'^game/(?P<slug>[-\w]+)/team_messages$',
views.TeamMessageListView.as_view(),
name='team_messages'),
url(r'^game/(?P<slug>[-\w]+)/report$',
views.ErrorReportCreateView.as_view(),
name='new-report'),
url(r'^game/(?P<slug>[-\w]+)',
views.GameRouter.as_view(),
name='show-game'),
]