Skip to main content
The Admin router handles system configuration and administrative settings.

Procedures

setKillSwitch

Type: Mutation
Authentication: Protected (ADMIN role required)
Enable or disable application submissions.
value
boolean
required
True to disable applications, false to enable
Example:
await trpc.admin.setKillSwitch.mutate(true); // Disable applications

setDhYear

Type: Mutation
Authentication: Protected (ADMIN role required)
Set the current DeltaHacks year.
year
string
required
Year in format “DH##” (e.g., “DH12”, “DH13”)
Example:
await trpc.admin.setDhYear.mutate("DH12");

getConfig

Type: Query
Authentication: Protected (ADMIN role required)
Get current system configuration.
No input parameters
dhYear
string
Current DeltaHacks year (e.g., “DH12”)
killApplications
boolean
Whether applications are disabled
Example:
const config = await trpc.admin.getConfig.useQuery();
// Returns: { dhYear: "DH12", killApplications: false }

getDhYear

Type: Query
Authentication: Protected (ADMIN role required)
Get the current DeltaHacks year.
No input parameters
year
string
Current DeltaHacks year
Example:
const year = await trpc.admin.getDhYear.useQuery();
// Returns: "DH12"

setWifiConfig

Type: Mutation
Authentication: Protected (ADMIN role required)
Set WiFi configuration for the event.
name
string
required
WiFi network name
password
string
required
WiFi password
Example:
await trpc.admin.setWifiConfig.mutate({
  name: "DeltaHacks",
  password: "hackathon2024"
});

Build docs developers (and LLMs) love