Introduces the `PageModule` to provide full CRUD capabilities for pages within spaces. Key features include: - API endpoints for creating, retrieving, updating, and soft-deleting pages. - Support for hierarchical page structures with validation to prevent circular references. - A mechanism to generate and manage temporary access tokens, allowing controlled public access to specific pages or entire spaces. - Integration with database repositories and comprehensive Swagger documentation for all new endpoints and DTOs. - Ensures proper authorization and validation for all page and token operations.
12 lines
380 B
TypeScript
12 lines
380 B
TypeScript
import { Module } from "@nestjs/common";
|
|
import { SpaceController } from "./space.controller";
|
|
import { SpaceService } from "./space.service";
|
|
import { DatabaseModule } from "../global/database/database.module";
|
|
|
|
@Module({
|
|
imports: [DatabaseModule],
|
|
controllers: [SpaceController],
|
|
providers: [SpaceService],
|
|
exports: [SpaceService],
|
|
})
|
|
export class SpaceModule {} |