Skip to content

Installation #11

Closed
Closed
@xLink

Description

@xLink

Okay so i have installed the package and all that jazz, looks like its working fine. Problem i have is thusly...

Route::api(['version' => 'v1', 'prefix' => 'api'], function () {

    Route::get('test', function () {
        return ['data' => ['a','b','c']];
    });

});

So thats supposed to create a route on api/test that will return some json correct?

So anyway, i run 'php artisan routes' only to not see that route atall?

 $ php artisan routes
+--------+-------------------------+----------------------+---------+----------------+---------------+
| Domain | URI                     | Name                 | Action  | Before Filters | After Filters |
+--------+-------------------------+----------------------+---------+----------------+---------------+
|        | GET|HEAD _debugbar/open | debugbar.openhandler | Closure |                |               |
+--------+-------------------------+----------------------+---------+----------------+---------------+

Am i doing something wrong or what? Any help is greatly appreciated... currently using laravel 4.1.25

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions