Skip to content

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.

395 B
Raw Blame
import { Controller, Get } from '@nestjs/common';

import { SkipThrottle } from './base';
import { Public } from './core/auth';

@Controller('/info')
export class AppController {
  @SkipThrottle()
  @Public()
  @Get()
  info() {
    return {
      compatibility: env.version,
      message: `AFFiNE ${env.version} Server`,
      type: env.DEPLOYMENT_TYPE,
      flavor: env.FLAVOR,
    };
  }
}