aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-03-29 16:11:17 +0100
committerGravatar Gareth Coles <[email protected]>2018-03-29 16:11:17 +0100
commit67618068683037b7529ee14e2a17a0ba23d75e26 (patch)
tree32e5e9ff51821334541425f44e0fef4d0734747b
parentFix OAuth unit test (diff)
Fix up route names
-rw-r--r--pysite/views/api/bot/tags.py2
-rw-r--r--pysite/views/api/bot/user.py2
-rw-r--r--pysite/views/api/error_view.py2
-rw-r--r--pysite/views/api/healthcheck.py2
-rw-r--r--pysite/views/api/index.py2
-rw-r--r--pysite/views/error_handlers/http_4xx.py2
-rw-r--r--pysite/views/error_handlers/http_5xx.py2
-rw-r--r--pysite/views/main/info/help.py2
-rw-r--r--pysite/views/main/info/index.py2
-rw-r--r--pysite/views/main/info/jams.py2
-rw-r--r--pysite/views/main/info/resources.py2
-rw-r--r--pysite/views/main/info/rules.py2
-rw-r--r--pysite/views/staff/index.py2
-rw-r--r--pysite/views/ws/echo.py2
14 files changed, 14 insertions, 14 deletions
diff --git a/pysite/views/api/bot/tags.py b/pysite/views/api/bot/tags.py
index 241f7686..6bedac7f 100644
--- a/pysite/views/api/bot/tags.py
+++ b/pysite/views/api/bot/tags.py
@@ -30,7 +30,7 @@ DELETE_SCHEMA = Schema([
class TagsView(APIView, DBMixin):
path = "/tags"
- name = "tags"
+ name = "api.bot.tags"
table_name = "tags"
table_primary_key = "tag_name"
diff --git a/pysite/views/api/bot/user.py b/pysite/views/api/bot/user.py
index c9686f56..75757ade 100644
--- a/pysite/views/api/bot/user.py
+++ b/pysite/views/api/bot/user.py
@@ -23,7 +23,7 @@ REQUIRED_KEYS = [
class UserView(APIView, DBMixin):
path = "/user"
- name = "user"
+ name = "api.bot.user"
table_name = "users"
table_primary_key = "user_id"
diff --git a/pysite/views/api/error_view.py b/pysite/views/api/error_view.py
index e5301336..ea7e19f5 100644
--- a/pysite/views/api/error_view.py
+++ b/pysite/views/api/error_view.py
@@ -6,7 +6,7 @@ from pysite.base_route import ErrorView
class APIErrorView(ErrorView):
- name = "api_error_all"
+ name = "api.error_all"
error_code = range(400, 600)
def __init__(self):
diff --git a/pysite/views/api/healthcheck.py b/pysite/views/api/healthcheck.py
index 2ff5dfb0..d57f61fa 100644
--- a/pysite/views/api/healthcheck.py
+++ b/pysite/views/api/healthcheck.py
@@ -6,7 +6,7 @@ from pysite.base_route import APIView
class HealthCheckView(APIView):
path = "/healthcheck"
- name = "healthcheck"
+ name = "api.healthcheck"
def get(self):
return jsonify({"status": "ok"})
diff --git a/pysite/views/api/index.py b/pysite/views/api/index.py
index 61fbece9..e2bd8fe0 100644
--- a/pysite/views/api/index.py
+++ b/pysite/views/api/index.py
@@ -5,7 +5,7 @@ from pysite.constants import ErrorCodes
class IndexView(APIView):
path = "/"
- name = "index"
+ name = "api.index"
def get(self):
return self.error(ErrorCodes.unknown_route)
diff --git a/pysite/views/error_handlers/http_4xx.py b/pysite/views/error_handlers/http_4xx.py
index 0f0f8a58..48ae7f0f 100644
--- a/pysite/views/error_handlers/http_4xx.py
+++ b/pysite/views/error_handlers/http_4xx.py
@@ -7,7 +7,7 @@ from pysite.constants import ERROR_DESCRIPTIONS
class Error400View(ErrorView):
- name = "error_4xx"
+ name = "errors.4xx"
error_code = range(400, 430)
def __init__(self):
diff --git a/pysite/views/error_handlers/http_5xx.py b/pysite/views/error_handlers/http_5xx.py
index f5bf1bfa..4f91aeb1 100644
--- a/pysite/views/error_handlers/http_5xx.py
+++ b/pysite/views/error_handlers/http_5xx.py
@@ -7,7 +7,7 @@ from pysite.constants import ERROR_DESCRIPTIONS
class Error500View(ErrorView):
- name = "error_5xx"
+ name = "errors.5xx"
error_code = range(500, 600)
def __init__(self):
diff --git a/pysite/views/main/info/help.py b/pysite/views/main/info/help.py
index 06c021c2..868b969f 100644
--- a/pysite/views/main/info/help.py
+++ b/pysite/views/main/info/help.py
@@ -4,7 +4,7 @@ from pysite.base_route import RouteView
class HelpView(RouteView):
path = "/info/help"
- name = "info/help"
+ name = "info.help"
def get(self):
return self.render("main/info/help.html")
diff --git a/pysite/views/main/info/index.py b/pysite/views/main/info/index.py
index 06a9a2c3..3f36e50f 100644
--- a/pysite/views/main/info/index.py
+++ b/pysite/views/main/info/index.py
@@ -4,7 +4,7 @@ from pysite.base_route import RouteView
class IndexView(RouteView):
path = "/info/"
- name = "info"
+ name = "info.index"
def get(self):
return self.render("main/info/index.html")
diff --git a/pysite/views/main/info/jams.py b/pysite/views/main/info/jams.py
index 2d71b433..19e4cb9c 100644
--- a/pysite/views/main/info/jams.py
+++ b/pysite/views/main/info/jams.py
@@ -4,7 +4,7 @@ from pysite.base_route import RouteView
class IndexView(RouteView):
path = "/info/jams"
- name = "info/jams"
+ name = "info.jams"
def get(self):
return self.render("main/info/jams.html")
diff --git a/pysite/views/main/info/resources.py b/pysite/views/main/info/resources.py
index bce162f4..f3ff8283 100644
--- a/pysite/views/main/info/resources.py
+++ b/pysite/views/main/info/resources.py
@@ -15,7 +15,7 @@ except Exception:
class ResourcesView(RouteView):
path = "/info/resources"
- name = "info/resources"
+ name = "info.resources"
def get(self):
return self.render("main/info/resources.html", categories=categories)
diff --git a/pysite/views/main/info/rules.py b/pysite/views/main/info/rules.py
index 75faded1..5605ba16 100644
--- a/pysite/views/main/info/rules.py
+++ b/pysite/views/main/info/rules.py
@@ -4,7 +4,7 @@ from pysite.base_route import RouteView
class RulesView(RouteView):
path = "/info/rules"
- name = "info/rules"
+ name = "info.rules"
def get(self):
return self.render("main/info/rules.html")
diff --git a/pysite/views/staff/index.py b/pysite/views/staff/index.py
index 19e89333..683b3a77 100644
--- a/pysite/views/staff/index.py
+++ b/pysite/views/staff/index.py
@@ -4,7 +4,7 @@ from pysite.base_route import RouteView
class StaffView(RouteView):
path = "/"
- name = "staff"
+ name = "staff.index"
def get(self):
return self.render("staff/staff.html")
diff --git a/pysite/views/ws/echo.py b/pysite/views/ws/echo.py
index a10f9b57..7e6b036f 100644
--- a/pysite/views/ws/echo.py
+++ b/pysite/views/ws/echo.py
@@ -8,7 +8,7 @@ from pysite.websockets import WS
class EchoWebsocket(WS):
path = "/echo"
- name = "ws_echo"
+ name = "ws.echo"
def __init__(self, socket: WebSocket):
super().__init__(socket)