mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 22:53:08 +08:00
6c422011ac
* Share - WIP * - public attachment links - WIP * WIP * WIP * Share - WIP * WIP * WIP * include userRole in space object * WIP * Server render shared page meta tags * disable user select * Close Navbar on outside click on mobile * update shared page spaceId * WIP * fix * close sidebar on click * close sidebar * defaults * update copy * Store share key in lowercase * refactor page breadcrumbs * Change copy * add link ref * open link button * add meta og:title * add twitter tags * WIP * make shares/info endpoint public * fix * * add /p/ segment to share urls * minore fixes * change mobile breadcrumb icon
48 lines
1.4 KiB
TypeScript
48 lines
1.4 KiB
TypeScript
import {
|
|
MiddlewareConsumer,
|
|
Module,
|
|
NestModule,
|
|
RequestMethod,
|
|
} from '@nestjs/common';
|
|
import { UserModule } from './user/user.module';
|
|
import { AuthModule } from './auth/auth.module';
|
|
import { WorkspaceModule } from './workspace/workspace.module';
|
|
import { PageModule } from './page/page.module';
|
|
import { AttachmentModule } from './attachment/attachment.module';
|
|
import { CommentModule } from './comment/comment.module';
|
|
import { SearchModule } from './search/search.module';
|
|
import { SpaceModule } from './space/space.module';
|
|
import { GroupModule } from './group/group.module';
|
|
import { CaslModule } from './casl/casl.module';
|
|
import { DomainMiddleware } from '../common/middlewares/domain.middleware';
|
|
import { ShareModule } from './share/share.module';
|
|
|
|
@Module({
|
|
imports: [
|
|
UserModule,
|
|
AuthModule,
|
|
WorkspaceModule,
|
|
PageModule,
|
|
AttachmentModule,
|
|
CommentModule,
|
|
SearchModule,
|
|
SpaceModule,
|
|
GroupModule,
|
|
CaslModule,
|
|
ShareModule,
|
|
],
|
|
})
|
|
export class CoreModule implements NestModule {
|
|
configure(consumer: MiddlewareConsumer) {
|
|
consumer
|
|
.apply(DomainMiddleware)
|
|
.exclude(
|
|
{ path: 'auth/setup', method: RequestMethod.POST },
|
|
{ path: 'health', method: RequestMethod.GET },
|
|
{ path: 'health/live', method: RequestMethod.GET },
|
|
{ path: 'billing/stripe/webhook', method: RequestMethod.POST },
|
|
)
|
|
.forRoutes('*');
|
|
}
|
|
}
|