TIS2023-FMFI / pracovne-cesty

Projekt TIS 2023 pre Katedru aplikovanej informatiky
The Unlicense
2 stars 0 forks source link

Web routing #63

Closed Mcibula closed 10 months ago

Mcibula commented 10 months ago

Draft PR, kde budú pribúdať definície webových routes mapujúcich URL na metódy kontrolerov. Prosím, priebežne sa sem pozrite a skontrolujte, či vám to sedí do častí projektu, na ktorých pracujete. Ďakujem

Mcibula commented 10 months ago

Pridat export

Mcibula commented 10 months ago

Index by sa mohol zobrazovat pre auth usera na /, pre guest by to bol homepage view.

Mcibula commented 10 months ago

Route list

Format: HTTP-method path ................. name › Controller@method

GET|HEAD  / ................................................................................ homepage
GET|HEAD  dashboard ........................................ dashboard › BusinessTripController@index

POST      spp ....................................................... spp.store › SPPController@store
GET|HEAD  spp/{spp} ............................................... spp.manage › SPPController@manage
PUT       spp/{spp}/deactivate ............................ spp.deactivate › SPPController@deactivate

POST      trips ........................................... trip.store › BusinessTripController@store
GET|HEAD  trips/create .................................. trip.create › BusinessTripController@create
GET|HEAD  trips/{trip} ................................... trip.details › BusinessTripController@show
PUT       trips/{trip} .................................. trip.update › BusinessTripController@update
PUT       trips/{trip}/cancel ........................... trip.cancel › BusinessTripController@cancel
PUT       trips/{trip}/close .............................. trip.close › BusinessTripController@close
PUT       trips/{trip}/confirm ........................ trip.confirm › BusinessTripController@confirm
GET|HEAD  trips/{trip}/edit ................................. trip.edit › BusinessTripController@edit
POST      trips/{trip}/export ........................ trip.export › BusinessTripController@exportPdf

POST      user ............................................. user.login › UserController@authenticate
POST      user/invite ........................................... user.invite › UserController@invite
POST      user/logout ........................................... user.logout › UserController@logout
GET|HEAD  user/register ....................................... user.register › UserController@create
ihorbaltsat commented 10 months ago

Za mňa to vyzerá super, pekna praca, nemám žiadne pripomienky. Ak to vyhovuje aj ostatným, môže sa to mergnut.