Skip to content

Commit

Permalink
redirect to www.buildnumbr.com
Browse files Browse the repository at this point in the history
  • Loading branch information
Yorty Ruiz Hernandez committed Jan 24, 2024
1 parent e630407 commit 4df0b99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/buildnumbr/src/projects/projects.controller.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import { Controller, Get, Header, Param } from '@nestjs/common';
import { Controller, Get, Header, Param, Redirect } from '@nestjs/common';
import { ProjectsService } from './projects.service';

@Controller()
export class ProjectsController {
constructor(private readonly projectsService: ProjectsService) {}

@Get()
@Redirect('https://www.buildnumbr.com', 301)
async index() {}

@Get(':projectId')
@Header('content-type', 'text/plain')
async increment(@Param('projectId') projectId: string) {
Expand Down

0 comments on commit 4df0b99

Please sign in to comment.