Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
✨ Add meta module
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Jan 9, 2021
1 parent b05f770 commit 93d9d78
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down Expand Up @@ -75,6 +76,7 @@ import { MetricsModule } from './modules/metrics/metrics.module';
GoogleMapsModule,
PuppeteerModule,
MetricsModule,
MetaModule,
],
providers: [
{
Expand Down
13 changes: 13 additions & 0 deletions src/modules/meta/meta.controller.ts
Original file line number Diff line number Diff line change
@@ -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() {}
}
7 changes: 7 additions & 0 deletions src/modules/meta/meta.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Module } from '@nestjs/common';
import { MetaController } from './meta.controller';

@Module({
controllers: [MetaController],
})
export class MetaModule {}

0 comments on commit 93d9d78

Please sign in to comment.