Skip to content

Commit

Permalink
Add deeplink routes (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardocustodio authored Sep 22, 2023
1 parent 873b072 commit f0008f8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions configs/core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ RUN composer create-project laravel/laravel:^10.0 laravel-application

COPY configs/core/composer.json /app/laravel-application
COPY configs/core/config/ /app/laravel-application/config/
COPY configs/core/routes/ /app/laravel-application/routes/

# Stage: composer-update
FROM create-application as composer-update
Expand Down
19 changes: 19 additions & 0 deletions configs/core/routes/web.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/

Route::get('/', function () {
return view('welcome');
});

Route::get('/proof/{code}', fn() => redirect()->away('https://deeplink.wallet.enjin.io/scan/' . base64_encode(request()->fullUrl())));
2 changes: 1 addition & 1 deletion platform-decoder

0 comments on commit f0008f8

Please sign in to comment.