mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 19:06:26 +00:00
e6ddcf9e4b
* Add RobotTokenSHA256 middleware for in-the-fly robot generation/login * Add RobotView, fix middleware, upgrade frontend * Token header as base91 * Add OAS schema of RobotView * Use RobotView on new fetchRobot(), mimick old fetchRobot() functionality * Upgrade websockets for token based authentication * Small fixes * Add frontend token entropy checks, add token on route /robot/<token> * Rename admin panel * Collect phrases
41 lines
1.1 KiB
Python
41 lines
1.1 KiB
Python
from django.urls import path
|
|
from drf_spectacular.views import SpectacularAPIView, SpectacularRedocView
|
|
|
|
from chat.views import ChatView
|
|
|
|
from .views import (
|
|
BookView,
|
|
HistoricalView,
|
|
InfoView,
|
|
LimitView,
|
|
MakerView,
|
|
OrderView,
|
|
PriceView,
|
|
RewardView,
|
|
RobotView,
|
|
StealthView,
|
|
TickView,
|
|
UserView,
|
|
)
|
|
|
|
urlpatterns = [
|
|
path("schema/", SpectacularAPIView.as_view(), name="schema"),
|
|
path("", SpectacularRedocView.as_view(url_name="schema"), name="redoc"),
|
|
path("make/", MakerView.as_view()),
|
|
path(
|
|
"order/",
|
|
OrderView.as_view({"get": "get", "post": "take_update_confirm_dispute_cancel"}),
|
|
),
|
|
path("user/", UserView.as_view()),
|
|
path("robot/", RobotView.as_view()),
|
|
path("book/", BookView.as_view()),
|
|
path("info/", InfoView.as_view()),
|
|
path("price/", PriceView.as_view()),
|
|
path("limits/", LimitView.as_view()),
|
|
path("reward/", RewardView.as_view()),
|
|
path("historical/", HistoricalView.as_view()),
|
|
path("ticks/", TickView.as_view()),
|
|
path("stealth/", StealthView.as_view()),
|
|
path("chat/", ChatView.as_view({"get": "get", "post": "post"})),
|
|
]
|