about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/util
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-09-25 14:46:14 +0200
committerThibG <thib@sitedethib.com>2018-11-19 15:56:38 +0100
commitb3ff35a75cf04e4aba2712a9d0897257cf79af82 (patch)
tree51f5b0b0c61c6b58ad0f866179c900bc40c2a0e8 /app/javascript/flavours/glitch/util
parenta77ee0bb6dcafffebc55db145ef4bac8038ae2a1 (diff)
Move URLs to backend in their own file
Diffstat (limited to 'app/javascript/flavours/glitch/util')
-rw-r--r--app/javascript/flavours/glitch/util/backend_links.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/util/backend_links.js b/app/javascript/flavours/glitch/util/backend_links.js
new file mode 100644
index 000000000..4fc03f919
--- /dev/null
+++ b/app/javascript/flavours/glitch/util/backend_links.js
@@ -0,0 +1,6 @@
+export const preferencesLink = '/settings/preferences';
+export const profileLink = '/settings/profile';
+export const signOutLink = '/auth/sign_out';
+export const termsLink = '/terms';
+export const accountAdminLink = (id) => `/admin/accounts/${id}`;
+export const statusAdminLink = (account_id, status_id) => `/admin/accounts/${account_id}/statuses/${status_id}`;