-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chama a index do angular pelo laravel
- Loading branch information
1 parent
0c94537
commit da8d053
Showing
5 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers; | ||
|
||
|
||
use Illuminate\Routing\Controller; | ||
use Illuminate\Http\Request; | ||
use Illuminate\Support\Facades\File; | ||
use Illuminate\Routing\Route; | ||
|
||
class AppController extends Controller | ||
{ | ||
private function render() | ||
{ | ||
// $renderer_source = File::get(base_path().'/../front/src/index.html'); | ||
return 'teste'; | ||
} | ||
|
||
public function get(Request $request) | ||
{ | ||
// $ssr = $this->render(); | ||
// return view('', ['ssr' => $ssr]); | ||
// echo file_get_contents(base_path().'/../front/src/index.html'); | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters