aboutsummaryrefslogtreecommitdiff
path: root/app/Http/routes.php
blob: 5e6bc5a0e3b76eaab708bc321c0721e56cb876e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to
| and give it the Closure to call when that URI is requested.
|
*/

$app->get('/', function () use ($app) {
    return view('trainer');
});

$app->get('/stem', function () use ($app) {
    return \HebrewParseTrainer\Stem::all();
});

$app->get('/tense', function () use ($app) {
    return \HebrewParseTrainer\Tense::all();
});

$app->get('/verb/random', 'RandomVerbController@show');