mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-03 00:19:03 +02:00
♻️ Refactor code for generating absolute url (#904)
This commit is contained in:
parent
eaa8f5813d
commit
703d551aac
25 changed files with 108 additions and 61 deletions
|
@ -8,6 +8,13 @@ export interface TRPCContext {
|
|||
emailClient: EmailClient;
|
||||
isSelfHosted: boolean;
|
||||
isEmailBlocked?: (email: string) => boolean;
|
||||
/**
|
||||
* Takes a relative path and returns an absolute URL to the app
|
||||
* @param path
|
||||
* @returns absolute URL
|
||||
*/
|
||||
absoluteUrl: (path?: string) => string;
|
||||
shortUrl: (path?: string) => string;
|
||||
}
|
||||
|
||||
export const trpcNextApiHandler = (context: TRPCContext) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue