diff --git a/src/app.module.ts b/src/app.module.ts index 7b0d52b17..9ec4d54a4 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -42,6 +42,7 @@ import { SlackModule } from './providers/slack/slack.module'; import { TasksModule } from './providers/tasks/tasks.module'; import { HttpExceptionFilter } from './filters/http-exception.filter'; import { MetricsModule } from './modules/metrics/metrics.module'; +import { MetaModule } from './modules/meta/meta.module'; @Module({ imports: [ @@ -75,6 +76,7 @@ import { MetricsModule } from './modules/metrics/metrics.module'; GoogleMapsModule, PuppeteerModule, MetricsModule, + MetaModule, ], providers: [ { diff --git a/src/modules/meta/meta.controller.ts b/src/modules/meta/meta.controller.ts new file mode 100644 index 000000000..acc1ec1a8 --- /dev/null +++ b/src/modules/meta/meta.controller.ts @@ -0,0 +1,13 @@ +import { Controller, Get, HttpStatus, Redirect } from '@nestjs/common'; +import { Public } from '../auth/public.decorator'; + +@Controller() +@Public() +export class MetaController { + constructor() {} + + /** Redirect to staart/staart */ + @Get() + @Redirect('https://github.com/staart/staart', HttpStatus.FOUND) + get() {} +} diff --git a/src/modules/meta/meta.module.ts b/src/modules/meta/meta.module.ts new file mode 100644 index 000000000..52fb01b8f --- /dev/null +++ b/src/modules/meta/meta.module.ts @@ -0,0 +1,7 @@ +import { Module } from '@nestjs/common'; +import { MetaController } from './meta.controller'; + +@Module({ + controllers: [MetaController], +}) +export class MetaModule {}