mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 05:42:30 +03:00
22 lines
479 B
TypeScript
22 lines
479 B
TypeScript
import { Controller, Get } from '@nestjs/common';
|
|
|
|
import { Public } from './core/auth';
|
|
import { Config, SkipThrottle } from './fundamentals';
|
|
|
|
@Controller('/')
|
|
export class AppController {
|
|
constructor(private readonly config: Config) {}
|
|
|
|
@SkipThrottle()
|
|
@Public()
|
|
@Get()
|
|
info() {
|
|
return {
|
|
compatibility: this.config.version,
|
|
message: `AFFiNE ${this.config.version} Server`,
|
|
type: this.config.type,
|
|
flavor: this.config.flavor,
|
|
};
|
|
}
|
|
}
|