jeff-downloader/start/routes.js

20 lines
616 B
JavaScript
Raw Permalink Normal View History

2019-12-03 21:18:40 +01:00
'use strict'
/*
|--------------------------------------------------------------------------
| Routes
|--------------------------------------------------------------------------
|
| Http routes are entry points to your web application. You can create
| routes for different URL's and bind Controller actions to them.
|
| A complete guide on routing is available here.
| http://adonisjs.com/docs/4.1/routing
|
*/
/** @type {typeof import('@adonisjs/framework/src/Route/Manager')} */
const Route = use('Route')
Route.get('/:legacy?', 'DownloadController.index')
Route.post('/:legacy?', 'DownloadController.download')