summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-05 14:52:56 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-05 15:08:49 +0200
commitf39d772de8d75232dd2d2637124ab60e6a408fac (patch)
tree32ceab2ce94250e27099b5bccce1d087e8e2b9ae /views
parent47b5c03d286eb047b62f6d03dddf7d6bc6b3978e (diff)
downloadserver-f39d772de8d75232dd2d2637124ab60e6a408fac.tar.gz
Change some URLs to be more consistent.
Diffstat (limited to 'views')
-rw-r--r--views/contacts.pug4
-rw-r--r--views/message_outbox.pug2
-rw-r--r--views/user.pug8
-rw-r--r--views/webhook.pug4
4 files changed, 9 insertions, 9 deletions
diff --git a/views/contacts.pug b/views/contacts.pug
index 78f1f5b..64d39d0 100644
--- a/views/contacts.pug
+++ b/views/contacts.pug
@@ -29,7 +29,7 @@ html
td= who.atime
td.r
a.blue(href="/message/send/"+who.name) &#x1f4dd;
- a.red(href="/contact/remove/"+who.name) &#x274c;
+ a.red(href="/contacts/remove/"+who.name) &#x274c;
else
tr
td Nobody
@@ -48,7 +48,7 @@ html
td
a.black(href="/user/"+who.name)= who.name
td.r
- a.red(href="/contact/remove/"+who.name) &#x274c;
+ a.red(href="/contacts/remove/"+who.name) &#x274c;
else
tr
td Nobody
diff --git a/views/message_outbox.pug b/views/message_outbox.pug
index 267a8b3..f305d83 100644
--- a/views/message_outbox.pug
+++ b/views/message_outbox.pug
@@ -10,7 +10,7 @@ html
function delete_all() {
let warning = "Are you sure you want to delete ALL the messages?"
if (window.confirm(warning))
- window.location.href = "/outbox/delete"
+ window.location.href = "/message/delete/outbox"
}
body
include header
diff --git a/views/user.pug b/views/user.pug
index c11f865..abb7865 100644
--- a/views/user.pug
+++ b/views/user.pug
@@ -31,13 +31,13 @@ html
a(href="/message/send/"+who.name) Send message
br
if relation > 0
- a(href="/contact/remove/"+who.name) Remove from friends
+ a(href="/contacts/remove/"+who.name) Remove from friends
else if relation < 0
- a(href="/contact/remove/"+who.name) Remove from blacklist
+ a(href="/contacts/remove/"+who.name) Remove from blacklist
else
- a(href="/contact/add-friend/"+who.name) Add to friends
+ a(href="/contacts/add-friend/"+who.name) Add to friends
br
- a(href="/contact/add-enemy/"+who.name) Blacklist user
+ a(href="/contacts/add-enemy/"+who.name) Blacklist user
if open_games.length > 0
h2 Open
diff --git a/views/webhook.pug b/views/webhook.pug
index ad6c75f..20d20ac 100644
--- a/views/webhook.pug
+++ b/views/webhook.pug
@@ -14,7 +14,7 @@ html(lang="en")
- var format = webhook && webhook.format || ""
- var prefix = webhook && webhook.prefix || ""
- form(action="/update-webhook" method="post")
+ form(action="/api/webhook/update" method="post")
if webhook && webhook.error
p.error ERROR: #{webhook.error}
p Webhook URL:
@@ -34,7 +34,7 @@ html(lang="en")
button(type="submit") Create
if webhook
- form(action="/delete-webhook" method="post")
+ form(action="/api/webhook/delete" method="post")
button(type="submit") Delete
h2 Discord Notifications