Skip to content

Commit

Permalink
Added TedX redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkBrines committed Jan 2, 2024
1 parent e674357 commit 8e6c3fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/Controllers/Http/RedirectionsController.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'

export default class RedirectionsController {
public async tedx({ response }: HttpContextContract) {
return response.redirect('https://www.youtube.com/watch?v=DAcFH5vDjlc')
}
}
2 changes: 2 additions & 0 deletions start/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ Route.group(() => {
Route.get('contributors', 'CoreController.contributors')
Route.get('projects', 'CoreController.projects')
Route.get('press', 'PressController.index')

Route.get('tedx', 'RedirectionsController.tedx')
})

// ----------------------------------------------
Expand Down

0 comments on commit 8e6c3fe

Please sign in to comment.