- Added new routes for server discovery and key rotation, including challenge issuance and confirmation processes. - Introduced database schema for managing server registrations and rotation challenges. - Implemented encryption and decryption utilities for secure communication between servers. - Updated package dependencies and added new client and server plugins for social features. - Enhanced user management with additional fields and relations in the database schema.
18 lines
451 B
TypeScript
18 lines
451 B
TypeScript
import { createAuthEndpoint } from "better-auth/api"
|
|
import { z } from "zod"
|
|
|
|
export const createMute = createAuthEndpoint("/social/mutes", {
|
|
method: "POST",
|
|
}, async (context) => { })
|
|
|
|
export const deleteMute = createAuthEndpoint("/social/mutes/:id", {
|
|
method: "DELETE",
|
|
params: z.object({
|
|
id: z.string(),
|
|
}),
|
|
}, async (context) => { })
|
|
|
|
export const getMutes = createAuthEndpoint("/social/mutes", {
|
|
method: "GET",
|
|
}, async (context) => { })
|
|
|