lib/routeMap
Esta página aún no está disponible en tu idioma.
Variables
Section titled “Variables”StudioCMSRoutes
Section titled “StudioCMSRoutes”const StudioCMSRoutes: { authLinks: { auth0Callback: string; auth0Index: string; discordCallback: string; discordIndex: string; forgotPasswordAPI: string; githubCallback: string; githubIndex: string; googleCallback: string; googleIndex: string; loginAPI: string; loginURL: string; logoutAPI: string; logoutURL: string; registerAPI: string; signupURL: string; }; endpointLinks: { apiTokens: string; config: string; content: { diff: string; folder: string; page: string; }; createResetLink: string; emailNotificationSettingsSite: string; mailer: { config: string; testEmail: string; }; newUsers: { create: string; invite: string; }; partials: { editor: string; livePreviewBox: string; render: string; userListItems: string; }; plugins: string; profile: string; resendVerificationEmail: string; resetPassword: string; searchList: string; updateUserNotifications: string; users: string; verifyEmail: string; verifySession: string; }; fts: { step1: string; step2: string; }; mainLinks: { baseSiteURL: string; contentManagement: string; contentManagementCreate: string; contentManagementDiff: string; contentManagementEdit: string; contentManagementFolderCreate: string; contentManagementFolderEdit: string; createPage: string; dashboardIndex: string; passwordReset: string; plugins: string; siteConfiguration: string; smtpConfiguration: string; unverifiedEmail: string; userManagement: string; userManagementEdit: string; userProfile: string; }; sdk: { fallback_pages: string; pages: string; updateLatestVersionCache: string; };};
Defined in: studiocms/packages/studiocms/src/lib/routeMap.ts:91
An object containing various route mappings for the StudioCMS application.
Type declaration
Section titled “Type declaration”authLinks
Section titled “authLinks”authLinks: { auth0Callback: string; auth0Index: string; discordCallback: string; discordIndex: string; forgotPasswordAPI: string; githubCallback: string; githubIndex: string; googleCallback: string; googleIndex: string; loginAPI: string; loginURL: string; logoutAPI: string; logoutURL: string; registerAPI: string; signupURL: string;};
authLinks.auth0Callback
Section titled “authLinks.auth0Callback”auth0Callback: string;
API route for Auth0 authentication callback.
authLinks.auth0Index
Section titled “authLinks.auth0Index”auth0Index: string;
API route for Auth0 authentication index.
authLinks.discordCallback
Section titled “authLinks.discordCallback”discordCallback: string;
API route for Discord authentication callback.
authLinks.discordIndex
Section titled “authLinks.discordIndex”discordIndex: string;
API route for Discord authentication index.
authLinks.forgotPasswordAPI
Section titled “authLinks.forgotPasswordAPI”forgotPasswordAPI: string;
authLinks.githubCallback
Section titled “authLinks.githubCallback”githubCallback: string;
API route for GitHub authentication callback.
authLinks.githubIndex
Section titled “authLinks.githubIndex”githubIndex: string;
API route for GitHub authentication index.
authLinks.googleCallback
Section titled “authLinks.googleCallback”googleCallback: string;
API route for Google authentication callback.
authLinks.googleIndex
Section titled “authLinks.googleIndex”googleIndex: string;
API route for Google authentication index.
authLinks.loginAPI
Section titled “authLinks.loginAPI”loginAPI: string;
API route for logging in.
authLinks.loginURL
Section titled “authLinks.loginURL”loginURL: string;
URL for the login page.
authLinks.logoutAPI
Section titled “authLinks.logoutAPI”logoutAPI: string;
API route for logging out.
authLinks.logoutURL
Section titled “authLinks.logoutURL”logoutURL: string;
URL for the logout page.
authLinks.registerAPI
Section titled “authLinks.registerAPI”registerAPI: string;
API route for registering a new user.
authLinks.signupURL
Section titled “authLinks.signupURL”signupURL: string;
URL for the signup page.
endpointLinks
Section titled “endpointLinks”endpointLinks: { apiTokens: string; config: string; content: { diff: string; folder: string; page: string; }; createResetLink: string; emailNotificationSettingsSite: string; mailer: { config: string; testEmail: string; }; newUsers: { create: string; invite: string; }; partials: { editor: string; livePreviewBox: string; render: string; userListItems: string; }; plugins: string; profile: string; resendVerificationEmail: string; resetPassword: string; searchList: string; updateUserNotifications: string; users: string; verifyEmail: string; verifySession: string;};
endpointLinks.apiTokens
Section titled “endpointLinks.apiTokens”apiTokens: string;
API route for fetching API tokens.
endpointLinks.config
Section titled “endpointLinks.config”config: string;
API route for fetching configuration.
endpointLinks.content
Section titled “endpointLinks.content”content: { diff: string; folder: string; page: string;};
endpointLinks.content.diff
Section titled “endpointLinks.content.diff”diff: string;
endpointLinks.content.folder
Section titled “endpointLinks.content.folder”folder: string;
API route for fetching folder content.
endpointLinks.content.page
Section titled “endpointLinks.content.page”page: string;
API route for fetching page content.
endpointLinks.createResetLink
Section titled “endpointLinks.createResetLink”createResetLink: string;
API route for creating a password reset link.
endpointLinks.emailNotificationSettingsSite
Section titled “endpointLinks.emailNotificationSettingsSite”emailNotificationSettingsSite: string;
endpointLinks.mailer
Section titled “endpointLinks.mailer”mailer: { config: string; testEmail: string;};
API routes for the mailer configuration.
endpointLinks.mailer.config
Section titled “endpointLinks.mailer.config”config: string;
API route for updating the mailer configuration
endpointLinks.mailer.testEmail
Section titled “endpointLinks.mailer.testEmail”testEmail: string;
API route for testing the mailer configuration.
endpointLinks.newUsers
Section titled “endpointLinks.newUsers”newUsers: { create: string; invite: string;};
endpointLinks.newUsers.create
Section titled “endpointLinks.newUsers.create”create: string;
API route for creating a new user.
endpointLinks.newUsers.invite
Section titled “endpointLinks.newUsers.invite”invite: string;
API route for inviting a new user.
endpointLinks.partials
Section titled “endpointLinks.partials”partials: { editor: string; livePreviewBox: string; render: string; userListItems: string;};
endpointLinks.partials.editor
Section titled “endpointLinks.partials.editor”editor: string;
API route for the editor.
endpointLinks.partials.livePreviewBox
Section titled “endpointLinks.partials.livePreviewBox”livePreviewBox: string;
API route for live preview box rendering.
endpointLinks.partials.render
Section titled “endpointLinks.partials.render”render: string;
API route for rendering content.
endpointLinks.partials.userListItems
Section titled “endpointLinks.partials.userListItems”userListItems: string;
API route for fetching user list items.
endpointLinks.plugins
Section titled “endpointLinks.plugins”plugins: string;
API route for fetching plugins.
endpointLinks.profile
Section titled “endpointLinks.profile”profile: string;
API route for fetching user profile.
endpointLinks.resendVerificationEmail
Section titled “endpointLinks.resendVerificationEmail”resendVerificationEmail: string;
endpointLinks.resetPassword
Section titled “endpointLinks.resetPassword”resetPassword: string;
API route for resetting password.
endpointLinks.searchList
Section titled “endpointLinks.searchList”searchList: string;
API route for searching lists.
endpointLinks.updateUserNotifications
Section titled “endpointLinks.updateUserNotifications”updateUserNotifications: string;
endpointLinks.users
Section titled “endpointLinks.users”users: string;
API route for fetching users.
endpointLinks.verifyEmail
Section titled “endpointLinks.verifyEmail”verifyEmail: string;
endpointLinks.verifySession
Section titled “endpointLinks.verifySession”verifySession: string;
API route for verifying a user session.
fts: { step1: string; step2: string;};
fts.step1
Section titled “fts.step1”step1: string;
API route for step 1 of the FTS process.
fts.step2
Section titled “fts.step2”step2: string;
API route for step 2 of the FTS process.
mainLinks
Section titled “mainLinks”mainLinks: { baseSiteURL: string; contentManagement: string; contentManagementCreate: string; contentManagementDiff: string; contentManagementEdit: string; contentManagementFolderCreate: string; contentManagementFolderEdit: string; createPage: string; dashboardIndex: string; passwordReset: string; plugins: string; siteConfiguration: string; smtpConfiguration: string; unverifiedEmail: string; userManagement: string; userManagementEdit: string; userProfile: string;};
mainLinks.baseSiteURL
Section titled “mainLinks.baseSiteURL”baseSiteURL: string;
Base URL for the non-dashboard site.
mainLinks.contentManagement
Section titled “mainLinks.contentManagement”contentManagement: string;
URL for the content management page.
mainLinks.contentManagementCreate
Section titled “mainLinks.contentManagementCreate”contentManagementCreate: string;
URL for creating content in the content management page.
mainLinks.contentManagementDiff
Section titled “mainLinks.contentManagementDiff”contentManagementDiff: string;
URL for viewing content differences in the content management page.
mainLinks.contentManagementEdit
Section titled “mainLinks.contentManagementEdit”contentManagementEdit: string;
URL for editing content in the content management page.
mainLinks.contentManagementFolderCreate
Section titled “mainLinks.contentManagementFolderCreate”contentManagementFolderCreate: string;
URL for creating a folder in the content management page.
mainLinks.contentManagementFolderEdit
Section titled “mainLinks.contentManagementFolderEdit”contentManagementFolderEdit: string;
URL for editing a folder in the content management page.
mainLinks.createPage
Section titled “mainLinks.createPage”createPage: string;
URL for creating a new page.
mainLinks.dashboardIndex
Section titled “mainLinks.dashboardIndex”dashboardIndex: string;
URL for the dashboard index.
mainLinks.passwordReset
Section titled “mainLinks.passwordReset”passwordReset: string;
mainLinks.plugins
Section titled “mainLinks.plugins”plugins: string;
URL for the plugins page.
mainLinks.siteConfiguration
Section titled “mainLinks.siteConfiguration”siteConfiguration: string;
URL for the site configuration page.
mainLinks.smtpConfiguration
Section titled “mainLinks.smtpConfiguration”smtpConfiguration: string;
URL for the smtp configuration page.
mainLinks.unverifiedEmail
Section titled “mainLinks.unverifiedEmail”unverifiedEmail: string;
URL for unverified email page.
mainLinks.userManagement
Section titled “mainLinks.userManagement”userManagement: string;
URL for the user management page.
mainLinks.userManagementEdit
Section titled “mainLinks.userManagementEdit”userManagementEdit: string;
URL for editing user management details.
mainLinks.userProfile
Section titled “mainLinks.userProfile”userProfile: string;
URL for the user profile page.
sdk: { fallback_pages: string; pages: string; updateLatestVersionCache: string;};
sdk.fallback_pages
Section titled “sdk.fallback_pages”fallback_pages: string;
SDK route for fetching fallback list of pages.
sdk.pages
Section titled “sdk.pages”pages: string;
SDK route for listing pages.
sdk.updateLatestVersionCache
Section titled “sdk.updateLatestVersionCache”updateLatestVersionCache: string;
SDK route for updating the latest version cache.
Functions
Section titled “Functions”getDeleteRoute()
Section titled “getDeleteRoute()”function getDeleteRoute(slug: string): string
Defined in: studiocms/packages/studiocms/src/lib/routeMap.ts:34
Generates a delete route for a given page slug.
Parameters
Section titled “Parameters”string
The slug of the page to be deleted.
Returns
Section titled “Returns”string
The complete delete route for the specified page.
getEditRoute()
Section titled “getEditRoute()”function getEditRoute(slug: string): string
Defined in: studiocms/packages/studiocms/src/lib/routeMap.ts:24
Generates the edit route for a given page slug.
Parameters
Section titled “Parameters”string
The slug of the page to generate the edit route for.
Returns
Section titled “Returns”string
The edit route as a string.
getSluggedRoute()
Section titled “getSluggedRoute()”function getSluggedRoute(url: string, slug: string): string
Defined in: studiocms/packages/studiocms/src/lib/routeMap.ts:14
Generates a slugged route by appending the provided slug to the given URL.
Parameters
Section titled “Parameters”string
The base URL to which the slug will be appended.
string
The slug to append to the base URL.
Returns
Section titled “Returns”string
The complete slugged route as a string.
makeDashboardRoute()
Section titled “makeDashboardRoute()”function makeDashboardRoute(route?: string): string
Defined in: studiocms/packages/studiocms/src/lib/routeMap.ts:54
Generates a URL for the dashboard route.
Parameters
Section titled “Parameters”route?
Section titled “route?”string
An optional string representing the specific route to append to the dashboard URL.
Returns
Section titled “Returns”string
The generated dashboard URL as a string.
makeNonDashboardRoute()
Section titled “makeNonDashboardRoute()”function makeNonDashboardRoute(route?: string): string
Defined in: studiocms/packages/studiocms/src/lib/routeMap.ts:44
Generates a non-dashboard route URL.
Parameters
Section titled “Parameters”route?
Section titled “route?”string
The optional route string to be appended. If not provided, a default route will be used.
Returns
Section titled “Returns”string
The generated non-dashboard route URL as a string.