1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-25 03:43:33 +01:00
freescout/routes/web.php

57 lines
3.1 KiB
PHP
Raw Normal View History

2018-06-22 19:44:21 +02:00
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
2018-07-25 16:09:20 +02:00
| Every time you change routes, run the following command to make them available in JS:
| php artisan laroute:generate
2018-06-22 19:44:21 +02:00
*/
Auth::routes();
2018-07-25 16:09:20 +02:00
# Public routes
# General routes for logged in users
2018-06-22 19:44:21 +02:00
Route::get('/', 'SecureController@dashboard')->name('dashboard');
2018-07-08 09:39:12 +02:00
Route::get('/logs/{name?}', 'SecureController@logs')->name('logs');
2018-06-22 19:44:21 +02:00
2018-07-25 16:09:20 +02:00
# Users
2018-06-22 19:44:21 +02:00
Route::get('/users', 'UsersController@users')->name('users');
2018-07-07 08:42:21 +02:00
Route::get('/users/wizard', 'UsersController@create')->name('users.create');
Route::post('/users/wizard', 'UsersController@createSave');
2018-06-24 11:01:26 +02:00
Route::get('/users/profile/{id}', 'UsersController@profile')->name('users.profile');
2018-06-26 11:43:11 +02:00
Route::post('/users/profile/{id}', 'UsersController@profileSave');
2018-07-04 13:52:25 +02:00
Route::post('/users/permissions/{id}', 'UsersController@permissionsSave');
Route::get('/users/permissions/{id}', 'UsersController@permissions')->name('users.permissions');
Route::post('/users/permissions/{id}', 'UsersController@permissionsSave');
2018-06-26 11:43:11 +02:00
2018-07-25 16:09:20 +02:00
# Mailboxes
2018-06-26 11:43:11 +02:00
Route::get('/settings/mailboxes', 'MailboxesController@mailboxes')->name('mailboxes');
2018-06-28 15:27:18 +02:00
Route::get('/settings/mailbox-new', 'MailboxesController@create')->name('mailboxes.create');
Route::post('/settings/mailbox-new', 'MailboxesController@createSave');
2018-06-26 11:43:11 +02:00
Route::get('/settings/mailbox/{id}', 'MailboxesController@update')->name('mailboxes.update');
Route::post('/settings/mailbox/{id}', 'MailboxesController@updateSave');
2018-06-28 15:27:18 +02:00
Route::get('/settings/permissions/{id}', 'MailboxesController@permissions')->name('mailboxes.permissions');
Route::post('/settings/permissions/{id}', 'MailboxesController@permissionsSave');
2018-07-14 03:23:37 +02:00
Route::get('/mailbox/{id}', 'MailboxesController@view')->name('mailboxes.view');
Route::get('/mailbox/{id}/{folder_id}', 'MailboxesController@view')->name('mailboxes.view.folder');
2018-07-06 05:19:49 +02:00
Route::get('/settings/connection-settings/{id}/outgoing', 'MailboxesController@connectionOutgoing')->name('mailboxes.connection');
2018-07-06 07:58:29 +02:00
Route::post('/settings/connection-settings/{id}/outgoing', 'MailboxesController@connectionOutgoingSave');
Route::get('/settings/connection-settings/{id}/incoming', 'MailboxesController@connectionIncoming')->name('mailboxes.connection.incoming');
2018-07-10 12:15:58 +02:00
Route::post('/settings/connection-settings/{id}/incoming', 'MailboxesController@connectionIncomingSave');
2018-07-25 16:09:20 +02:00
# Customers
2018-07-10 12:15:58 +02:00
Route::get('/customer/{id}/edit', 'CustomersController@update')->name('customers.update');
Route::post('/customer/{id}/edit', 'CustomersController@updateSave');
2018-07-15 12:30:49 +02:00
Route::get('/customer/{id}/', 'CustomersController@conversations')->name('customers.conversations');
2018-07-25 16:09:20 +02:00
# Conversations
2018-07-24 08:34:28 +02:00
Route::get('/conversation/{id}', 'ConversationsController@view')->name('conversations.view');
2018-07-25 16:09:20 +02:00
Route::post('/conversation/ajax', ['uses' => 'ConversationsController@ajax', 'laroute' => true])->name('conversations.ajax');