feat: scaffold center and guild backend NestJS skeletons

This commit is contained in:
nav
2026-05-12 08:31:43 +00:00
parent 026be99393
commit 88bec71cf8
26 changed files with 3597 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import { Body, Controller, Get, Post } from '@nestjs/common';
type NodeRegistration = {
nodeId?: string;
name?: string;
endpoint?: string;
handshakeProof?: string;
};
@Controller('nodes')
export class NodesController {
private readonly nodes: NodeRegistration[] = [];
@Post('register')
register(@Body() body: NodeRegistration) {
this.nodes.push(body);
return { status: 'accepted', handshake: 'todo-verify-shared-secret', node: body };
}
@Get()
list() {
return { items: this.nodes };
}
}