-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathweb.php
executable file
·44 lines (36 loc) · 1.37 KB
/
web.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/*
|--------------------------------------------------------------------------
| Mercurius Routes
|--------------------------------------------------------------------------
|
| This file is where we define Mercurius routes.
|
*/
Route::group([
'as' => 'mercurius.',
'namespace' => '\Launcher\Mercurius\Http\Controllers',
'middleware' => [
// 'Mercurius',
'web',
'auth',
],
], function () {
// Mercurius home
Route::get('/messages', ['as' => 'home', 'uses' => 'MessagesController@index']);
// User Profile
Route::get('/profile/refresh', 'ProfileController@refresh');
Route::get('/profile/notifications', 'ProfileController@notifications');
Route::post('/profile', 'ProfileController@update');
// Conversations
Route::get('/conversations', 'ConversationsController@index');
Route::post('/conversations/{receiver}', 'ConversationsController@show');
Route::delete('/conversations/{receiver}', 'ConversationsController@destroy');
// Messages
Route::post('/messages', 'MessagesController@send');
Route::delete('/messages/{id}', 'MessagesController@destroy');
// Find Receivers
Route::post('/receivers', 'ReceiversController@search');
// Dummy page example
Route::get('/notification-page-sample', ['as' => 'example', 'uses' => 'PagesController@notificationPageSample']);
});