Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit 34e3356

Browse files
committed
Merge branch 'dev'
2 parents bec37e2 + 7c5f881 commit 34e3356

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

src/Http/routes.php

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<?php
22

3+
namespace Lucid\Console;
4+
5+
use Route;
6+
37
Route::group(['prefix' => 'lucid'], function () {
48

59
// UI Navigation Routes
@@ -39,7 +43,7 @@
3943
});
4044

4145
Route::post('/services', function () {
42-
return app(Lucid\Console\Generators\ServiceGenerator::class)->generate(request()->input('name'))->toArray();
46+
return app(\Lucid\Console\Generators\ServiceGenerator::class)->generate(request()->input('name'))->toArray();
4347
});
4448

4549
Route::get('/features/{name}', function ($name) {
@@ -67,7 +71,7 @@
6771
$title = request()->input('title');
6872
$domain = request()->input('domain');
6973

70-
return app(Lucid\Console\Generators\JobGenerator::class)->generate($title, $domain)->toArray();
74+
return app(\Lucid\Console\Generators\JobGenerator::class)->generate($title, $domain)->toArray();
7175
});
7276

7377
Route::post('/features', function () {
@@ -76,11 +80,11 @@
7680
$service = request()->input('service');
7781
$jobs = request()->input('jobs');
7882

79-
return app(Lucid\Console\Generators\FeatureGenerator::class)->generate($title, $service, $jobs)->toArray();
83+
return app(\Lucid\Console\Generators\FeatureGenerator::class)->generate($title, $service, $jobs)->toArray();
8084
});
8185

8286
Route::get('/logs', function () {
83-
$reader = app(Stevebauman\LogReader\LogReader::class);
87+
$reader = app(\Stevebauman\LogReader\LogReader::class);
8488

8589
if (request()->has('level')) {
8690
$reader->level(request()->input('level'));
@@ -91,16 +95,16 @@
9195
});
9296

9397
Route::put('/logs/{id}/read', function ($id) {
94-
app(Stevebauman\LogReader\LogReader::class)->find($id)->markRead();
98+
app(\Stevebauman\LogReader\LogReader::class)->find($id)->markRead();
9599
});
96100

97101
Route::get('/analysis', function () {
98-
return (new Lucid\Console\Analyser())->analyse();
102+
return (new \Lucid\Console\Analyser())->analyse();
99103
});
100104

101105
});
102106

103107
class Controller
104108
{
105-
use Lucid\Console\Finder;
109+
use Finder;
106110
}

0 commit comments

Comments
 (0)