sipher/src/lib/plugins/server/helpers/social/endpoints/mutes.ts
Nixyan ea172050a6 feat: implement server discovery and key rotation functionality
- 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.
2026-03-09 21:37:59 -03:00

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) => { })