2023-03-13 22:01:43 +01:00
|
|
|
import {Router} from 'lib/routes/router'
|
|
|
|
|
|
|
|
export const router = new Router({
|
|
|
|
Home: '/',
|
|
|
|
Search: '/search',
|
2023-05-26 03:02:37 +02:00
|
|
|
Feeds: '/feeds',
|
2023-03-13 22:01:43 +01:00
|
|
|
Notifications: '/notifications',
|
|
|
|
Settings: '/settings',
|
2023-09-21 20:33:19 +02:00
|
|
|
LanguageSettings: '/settings/language',
|
2023-11-02 00:15:40 +01:00
|
|
|
Lists: '/lists',
|
2023-05-11 23:08:21 +02:00
|
|
|
Moderation: '/moderation',
|
2023-11-02 00:15:40 +01:00
|
|
|
ModerationModlists: '/moderation/modlists',
|
2023-05-11 23:08:21 +02:00
|
|
|
ModerationMutedAccounts: '/moderation/muted-accounts',
|
|
|
|
ModerationBlockedAccounts: '/moderation/blocked-accounts',
|
2024-03-09 17:35:23 +01:00
|
|
|
Profile: ['/profile/:name', '/profile/:name/rss'],
|
2023-03-13 22:01:43 +01:00
|
|
|
ProfileFollowers: '/profile/:name/followers',
|
|
|
|
ProfileFollows: '/profile/:name/follows',
|
2023-05-11 23:08:21 +02:00
|
|
|
ProfileList: '/profile/:name/lists/:rkey',
|
2023-03-13 22:01:43 +01:00
|
|
|
PostThread: '/profile/:name/post/:rkey',
|
2023-03-31 20:17:26 +02:00
|
|
|
PostLikedBy: '/profile/:name/post/:rkey/liked-by',
|
2023-03-13 22:01:43 +01:00
|
|
|
PostRepostedBy: '/profile/:name/post/:rkey/reposted-by',
|
2023-11-02 00:15:40 +01:00
|
|
|
ProfileFeed: '/profile/:name/feed/:rkey',
|
|
|
|
ProfileFeedLikedBy: '/profile/:name/feed/:rkey/liked-by',
|
2024-03-18 20:46:28 +01:00
|
|
|
ProfileLabelerLikedBy: '/profile/:name/labeler/liked-by',
|
2023-03-13 22:01:43 +01:00
|
|
|
Debug: '/sys/debug',
|
2024-03-18 20:46:28 +01:00
|
|
|
DebugMod: '/sys/debug-mod',
|
2023-03-13 22:01:43 +01:00
|
|
|
Log: '/sys/log',
|
2023-04-22 01:55:29 +02:00
|
|
|
AppPasswords: '/settings/app-passwords',
|
2024-02-22 17:51:11 +01:00
|
|
|
PreferencesFollowingFeed: '/settings/following-feed',
|
2023-09-19 21:24:58 +02:00
|
|
|
PreferencesThreads: '/settings/threads',
|
2024-01-05 02:37:36 +01:00
|
|
|
PreferencesExternalEmbeds: '/settings/external-embeds',
|
2024-04-19 23:10:37 +02:00
|
|
|
AccessibilitySettings: '/settings/accessibility',
|
2023-05-15 03:37:18 +02:00
|
|
|
SavedFeeds: '/settings/saved-feeds',
|
2023-03-14 02:34:01 +01:00
|
|
|
Support: '/support',
|
|
|
|
PrivacyPolicy: '/support/privacy',
|
2023-04-07 05:53:58 +02:00
|
|
|
TermsOfService: '/support/tos',
|
|
|
|
CommunityGuidelines: '/support/community-guidelines',
|
|
|
|
CopyrightPolicy: '/support/copyright',
|
2024-03-01 02:56:29 +01:00
|
|
|
Hashtag: '/hashtag/:tag',
|
2024-04-27 06:54:18 +02:00
|
|
|
MessagesList: '/messages',
|
|
|
|
MessagesSettings: '/messages/settings',
|
|
|
|
MessagesConversation: '/messages/:conversation',
|
2023-03-13 22:01:43 +01:00
|
|
|
})
|