There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
chore(server): allow preflight workspace blob url (#11783)
forehalo5e0d1fae98e0
diff --git a/packages/backend/server/src/core/workspaces/controller.ts b/packages/backend/server/src/core/workspaces/controller.tsindex 0daea1d09a..ca314c0a29 100644--- a/packages/backend/server/src/core/workspaces/controller.ts+++ b/packages/backend/server/src/core/workspaces/controller.ts@@ -1,4 +1,4 @@-import { Controller, Get, Logger, Param, Res } from '@nestjs/common';+import { Controller, Get, Logger, Param, Query, Res } from '@nestjs/common';import type { Response } from 'express';import {@@ -37,6 +37,7 @@ export class WorkspacesController {@CurrentUser() user: CurrentUser | undefined,@Param('id') workspaceId: string,@Param('name') name: string,+ @Query('redirect') redirect: string | undefined,@Res() res: Response) {await this.ac@@ -51,7 +52,13 @@ export class WorkspacesController {if (redirectUrl) {// redirect to signed url- return res.redirect(redirectUrl);+ if (redirect === 'manual') {+ return res.send({+ url: redirectUrl,+ });+ } else {+ return res.redirect(redirectUrl);+ }}if (!body) {