+ @if (Route::has('login'))
+
+ @auth
+
Home
+ @else
+
Login
+
+ @if (Route::has('register'))
+
Register
+ @endif
+ @endauth
+
+ @endif
+
+
+
+
+
diff --git a/ow/routes/api.php b/ow/routes/api.php
new file mode 100644
index 00000000..8d6193d3
--- /dev/null
+++ b/ow/routes/api.php
@@ -0,0 +1,69 @@
+get('/user', function (Request $request) {
+ return $request->user();
+});
+
+/*Authentication*/
+Route::prefix('auth')->group(function(){
+ Route::post("register", "AuthenticationController@register"); // cadastro do usuario
+ Route::post("login", "AuthenticationController@login");
+
+ Route::middleware('auth:api')->group(function(){
+ Route::post("logout", "AuthenticationController@logout");
+ });
+});
+
+Route::middleware('auth:api')->group(function(){
+ /*Users*/
+ Route::prefix('users')->group(function(){
+ Route::get("", "UsersController@index");
+ Route::get("{user}", "UsersController@show");
+ Route::delete("{user}", "UsersController@eliminate");
+ Route::patch("{user}", "UsersController@updateBalance");
+ });
+
+ /*Operations*/
+ Route::prefix('operations')->group(function(){
+ Route::get("", "OperationsController@index");
+ Route::get("{operation}", "OperationsController@show");
+ Route::get("user/{user}", "OperationsController@showUser");
+ Route::get("status/{status}", "OperationsController@showStatus");
+ Route::get("transaction/{transaction}", "OperationsController@showTransaction");
+ Route::delete("{operation}/{user}", "OperationsController@eliminate");
+ Route::get("amount/{user}", "OperationsController@amountUser");
+ });
+
+ /* Report via POST */
+ Route::prefix('report')->group(function(){
+ Route::post("", "OperationsController@reportPost");
+ });
+});
+
+/* Reports via GET*/
+Route::get("report/{param}", "OperationsController@reportGet");
+Route::get("report/{param}/{user}", "OperationsController@reportGet");
+
+Route::any('', function () {
+ return response()->json(['message' => 'Rota nāo localizada'], 401);
+});
+
+Route::fallback(function () {
+ return response()->json(['message' => 'Rota nāo localizada'], 401);
+});
+
+
+
diff --git a/ow/routes/channels.php b/ow/routes/channels.php
new file mode 100644
index 00000000..f16a20b9
--- /dev/null
+++ b/ow/routes/channels.php
@@ -0,0 +1,16 @@
+id === (int) $id;
+});
diff --git a/ow/routes/console.php b/ow/routes/console.php
new file mode 100644
index 00000000..75dd0cde
--- /dev/null
+++ b/ow/routes/console.php
@@ -0,0 +1,18 @@
+comment(Inspiring::quote());
+})->describe('Display an inspiring quote');
diff --git a/ow/routes/web.php b/ow/routes/web.php
new file mode 100644
index 00000000..810aa349
--- /dev/null
+++ b/ow/routes/web.php
@@ -0,0 +1,16 @@
+
+ */
+
+$uri = urldecode(
+ parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
+);
+
+// This file allows us to emulate Apache's "mod_rewrite" functionality from the
+// built-in PHP web server. This provides a convenient way to test a Laravel
+// application without having installed a "real" web server software here.
+if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
+ return false;
+}
+
+require_once __DIR__.'/public/index.php';
diff --git a/ow/storage/app/.gitignore b/ow/storage/app/.gitignore
new file mode 100644
index 00000000..8f4803c0
--- /dev/null
+++ b/ow/storage/app/.gitignore
@@ -0,0 +1,3 @@
+*
+!public/
+!.gitignore
diff --git a/ow/storage/app/public/.gitignore b/ow/storage/app/public/.gitignore
new file mode 100644
index 00000000..d6b7ef32
--- /dev/null
+++ b/ow/storage/app/public/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore
diff --git a/ow/storage/framework/.gitignore b/ow/storage/framework/.gitignore
new file mode 100644
index 00000000..b02b700f
--- /dev/null
+++ b/ow/storage/framework/.gitignore
@@ -0,0 +1,8 @@
+config.php
+routes.php
+schedule-*
+compiled.php
+services.json
+events.scanned.php
+routes.scanned.php
+down
diff --git a/ow/storage/framework/cache/.gitignore b/ow/storage/framework/cache/.gitignore
new file mode 100644
index 00000000..01e4a6cd
--- /dev/null
+++ b/ow/storage/framework/cache/.gitignore
@@ -0,0 +1,3 @@
+*
+!data/
+!.gitignore
diff --git a/ow/storage/framework/cache/data/.gitignore b/ow/storage/framework/cache/data/.gitignore
new file mode 100644
index 00000000..d6b7ef32
--- /dev/null
+++ b/ow/storage/framework/cache/data/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore
diff --git a/ow/storage/framework/sessions/.gitignore b/ow/storage/framework/sessions/.gitignore
new file mode 100644
index 00000000..d6b7ef32
--- /dev/null
+++ b/ow/storage/framework/sessions/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore
diff --git a/ow/storage/framework/testing/.gitignore b/ow/storage/framework/testing/.gitignore
new file mode 100644
index 00000000..d6b7ef32
--- /dev/null
+++ b/ow/storage/framework/testing/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore
diff --git a/ow/storage/framework/views/.gitignore b/ow/storage/framework/views/.gitignore
new file mode 100644
index 00000000..d6b7ef32
--- /dev/null
+++ b/ow/storage/framework/views/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore
diff --git a/ow/storage/logs/.gitignore b/ow/storage/logs/.gitignore
new file mode 100644
index 00000000..d6b7ef32
--- /dev/null
+++ b/ow/storage/logs/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore
diff --git a/ow/tests/CreatesApplication.php b/ow/tests/CreatesApplication.php
new file mode 100644
index 00000000..547152f6
--- /dev/null
+++ b/ow/tests/CreatesApplication.php
@@ -0,0 +1,22 @@
+make(Kernel::class)->bootstrap();
+
+ return $app;
+ }
+}
diff --git a/ow/tests/Feature/ExampleTest.php b/ow/tests/Feature/ExampleTest.php
new file mode 100644
index 00000000..f31e495c
--- /dev/null
+++ b/ow/tests/Feature/ExampleTest.php
@@ -0,0 +1,21 @@
+get('/');
+
+ $response->assertStatus(200);
+ }
+}
diff --git a/ow/tests/TestCase.php b/ow/tests/TestCase.php
new file mode 100644
index 00000000..2932d4a6
--- /dev/null
+++ b/ow/tests/TestCase.php
@@ -0,0 +1,10 @@
+assertTrue(true);
+ }
+}
diff --git a/ow/webpack.mix.js b/ow/webpack.mix.js
new file mode 100644
index 00000000..8a923cbb
--- /dev/null
+++ b/ow/webpack.mix.js
@@ -0,0 +1,15 @@
+const mix = require('laravel-mix');
+
+/*
+ |--------------------------------------------------------------------------
+ | Mix Asset Management
+ |--------------------------------------------------------------------------
+ |
+ | Mix provides a clean, fluent API for defining some Webpack build steps
+ | for your Laravel application. By default, we are compiling the Sass
+ | file for the application as well as bundling up all the JS files.
+ |
+ */
+
+mix.js('resources/js/app.js', 'public/js')
+ .sass('resources/sass/app.scss', 'public/css');