Route::post('clients/{id}/projects', 'ProjectController@store'); Route::post('clients/{id}/invoices', 'InvoiceController@store'); Route::post('clients/{id}/quotes', 'QuoteController@store'); Route::post('projects/{id}/updates', 'ProjectUpdateController@store'); Route::post('projects/{id}/activity', 'ProjectActivityController@store'); Route::post('return', 'APIController@returnReuqest'); Route::get('test-email', 'APIController@testMailQueue'); }); Route::post('oauth/access_token', function () { return Response::json(Authorizer::issueAccessToken()); }); Route::get('protected-resource', ['middleware' => 'oauth', function () { return "ya in"; }]); Route::get('sms/{number}/{message}', function ($number, $message) { $message = SMS::send($number, $message); if ($message) { return $message->messageId; } else { return "broken"; } }); Route::get('sms/{messageId}', function ($messageId) { $message = SMS::getResponse($messageId); if ($message) { return $message; } else { return "broken"; } }); Route::post('receive-github', 'APIController@receive_push');