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',
|
2024-07-24 21:09:20 +02:00
|
|
|
NotificationsSettings: '/notifications/settings',
|
2023-03-13 22:01:43 +01:00
|
|
|
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',
|
2024-06-12 00:42:28 +02:00
|
|
|
ProfileKnownFollowers: '/profile/:name/known-followers',
|
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',
|
2024-08-21 22:26:25 +02:00
|
|
|
PostQuotes: '/profile/:name/post/:rkey/quotes',
|
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',
|
2024-08-01 19:14:32 +02:00
|
|
|
AppearanceSettings: '/settings/appearance',
|
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-05-02 22:02:45 +02:00
|
|
|
Messages: '/messages',
|
2024-04-27 06:54:18 +02:00
|
|
|
MessagesSettings: '/messages/settings',
|
|
|
|
MessagesConversation: '/messages/:conversation',
|
2024-06-22 06:38:04 +02:00
|
|
|
Start: '/start/:name/:rkey',
|
|
|
|
StarterPackEdit: '/starter-pack/edit/:rkey',
|
|
|
|
StarterPack: '/starter-pack/:name/:rkey',
|
2024-06-28 04:35:20 +02:00
|
|
|
StarterPackShort: '/starter-pack-short/:code',
|
2024-06-22 06:38:04 +02:00
|
|
|
StarterPackWizard: '/starter-pack/create',
|
2023-03-13 22:01:43 +01:00
|
|
|
})
|