Ekapp/skolehjem/routes/web.php

57 lines
2.8 KiB
PHP
Raw Normal View History

2020-06-08 08:04:45 +00:00
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| 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!
|
*/
2020-06-08 13:08:46 +00:00
//Route::get('/', function () {
// return view('welcome');
//});
Route::get("/", "RootController@index")->name("root.index");
2020-06-30 09:38:28 +00:00
Route::get("/home", "RootController@index")->name("root.index");
2020-06-10 10:30:44 +00:00
2020-06-19 06:15:24 +00:00
Route::get("/login", "UserController@showLogin")->name("users.show-login");
Route::post("/login", "UserController@login")->name("users.login");
Route::get("/logout", "UserController@logout")->name("users.logout");
Route::get("/forgot", "UserController@showForgot")->name("users.show-forgot");
Route::post("/forgot", "UserController@forgot")->name("users.forgot");
2020-06-30 12:04:34 +00:00
Route::get("/account", "UserController@account")->name("users.account");
Route::get("/account/edit", "UserController@accountedit")->name("users.accountedit");
2020-07-01 08:13:49 +00:00
Route::get("/account/editpass", "UserController@accounteditpass")->name("users.accounteditpass");
Route::post("/account/update", "UserController@update")->name("users.accountupdate");
Route::get("/events/signups", "EventController@signups")->name("events.signups");
2020-06-29 07:21:17 +00:00
Route::get("phones", "PhoneController@index")->name("phones.index");
2020-07-27 11:07:19 +00:00
Route::get("/contactsapi", "ContactController@search")->name("contacts.search");
2020-07-27 14:03:49 +00:00
Route::get("/eventsapi", "EventController@search")->name("events.search");
Route::get("/menuplansapi", "MenuPlanController@search")->name("menu-plans.search");
Route::get("/rolesapi", "RolesController@search")->name("roles.search");
Route::get("/userapi", "UserController@search")->name("users.search");
2020-07-29 13:27:07 +00:00
Route::get("/vaskeapi", "WashingReservationController@search")->name("washing-reservations.search");
2020-07-28 12:26:32 +00:00
Route::get("/washing-reservationsapi", "WashingReservationController@api")->name("washing-reservations.api");
2020-08-03 08:08:03 +00:00
Route::get("/risrosapi", "FeedbackController@search")->name("feedbacks.search");
2020-07-27 14:03:49 +00:00
2020-06-26 06:20:43 +00:00
Route::resource("contacts", "ContactController");
2020-06-25 08:34:10 +00:00
Route::resource("menu-plans", "MenuPlanController");
2020-06-15 06:59:15 +00:00
Route::resource("users", "UserController");
2020-06-19 06:15:24 +00:00
Route::resource("events", "EventController");
2020-07-28 06:44:25 +00:00
Route::resource("userevents", "UserEventController");
2020-06-19 06:15:24 +00:00
Route::resource("washing-machines", "WashingMachineController");
Route::resource("washing-reservations", "WashingReservationController");
Route::resource("feedbacks", "FeedbackController");
2020-06-25 08:34:10 +00:00
Route::resource("external-links", "ExternalLinkController");
Route::resource("resource-extensions", "ResourceExtensionController");
2020-07-01 07:15:11 +00:00
Route::resource("resource-categories", "ResourceCategoryController");
2020-06-30 09:49:17 +00:00
Route::resource("roles", "RolesController");