Internal server error while connect laravel and angulars

I want to develop simple front end AngularJS and backend Laravel. I don’t know why my AngularJS route is not connected with laravel route.It keep mention as GET http://localhost/api/todos Internal server error. I hope someone can help me to solve it. Thanks in advance.


    <title>Laravel + Angularjs</title>
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
    <script type="text/javascript" src=""></script>
<body ng-App>
    <div id="todos" ng-controller="Todoctrl">
    <h3 class="page-header">Todos<small ng-if="remaining()">{{remaining()}} remaining</small>
    <ul  class="unstyled">
        <li ng-repeat="todo in todos">
            <input type="checkbox" ng-model="todo.done">
    <script src="js/app.js">



    namespace App;

    use IlluminateDatabaseEloquentModel;

    class Todo extends Model
        protected $guarderd = [];



  Route::middleware('auth:api')->get('/user', function (Request $request) {
        return $request->user();
    Route::get('/todos',function(Request $request){
        return $request->user();

function Todoctrl($scope,$http){
        $scope.todos = todos;
    $scope.remaining = function(){
        var count = 0;
            count == todo.done ? 0 : 1;


Source: AngularJS