|
3 | 3 |
|
4 | 4 | app_name = "api"
|
5 | 5 | urlpatterns = [
|
6 |
| - path("user/data/", views.userData, name="userdata"), |
7 |
| - path("node/data/", views.nodeData, name="nodedata"), |
8 |
| - path("donate/data/", views.donateData, name="donatedata"), |
9 |
| - path("random/port/", views.change_ss_port, name="changessport"), |
| 6 | + path("system_status/", views.SystemStatusView.as_view(), name="system_status"), |
| 7 | + path("user/settings/", views.UserSettingsView.as_view(), name="user_settings"), |
| 8 | + path("subscribe/", views.SubscribeView.as_view(), name="subscribe"), |
| 9 | + path("reset_ss_port/", views.ReSetSSPortView.as_view(), name="reset_ss_port"), |
10 | 10 | path("gen/invitecode/", views.gen_invite_code, name="geninvitecode"),
|
11 | 11 | path("shop/", views.purchase, name="purchase"),
|
12 |
| - path("traffic/query/", views.traffic_query, name="traffic_query"), |
13 | 12 | path("change/theme/", views.change_theme, name="change_theme"),
|
14 | 13 | path("change/sub_type/", views.change_sub_type, name="change_sub_type"),
|
15 |
| - path("checkin/", views.checkin, name="checkin"), |
16 |
| - # 邀请码接口 |
17 |
| - path("get/invitecode/", views.get_invitecode, name="get_invitecode"), |
| 14 | + path("checkin/", views.UserCheckInView.as_view(), name="checkin"), |
18 | 15 | # web api 接口
|
19 |
| - path("nodes/<int:node_id>", views.node_api, name="get_node_info"), |
20 |
| - path("nodes/online", views.node_online_api, name="post_onlineip"), |
21 | 16 | path(
|
22 |
| - "users/nodes/<int:node_id>", views.node_user_configs, name="node_user_configs" |
| 17 | + "user_ss_config/<int:node_id>/", |
| 18 | + views.UserSSConfigView.as_view(), |
| 19 | + name="user_ss_config", |
23 | 20 | ),
|
24 |
| - path("traffic/upload", views.traffic_api, name="post_traffic"), |
25 |
| - path("nodes/aliveip", views.alive_ip_api, name="post_aliveip"), |
26 | 21 | # 支付
|
27 | 22 | path("orders", views.OrderView.as_view(), name="order"),
|
28 | 23 | path("callback/alipay", views.ailpay_callback, name="alipay_callback"),
|
| 24 | + # user stats |
| 25 | + path( |
| 26 | + "user/stats/ref_chart", views.UserRefChartView.as_view(), name="user_ref_chart" |
| 27 | + ), |
| 28 | + path( |
| 29 | + "user/stats/traffic_chart", |
| 30 | + views.UserTrafficChartView.as_view(), |
| 31 | + name="user_traffic_chart", |
| 32 | + ), |
29 | 33 | ]
|
0 commit comments