routes.ini 2.26 KB
Newer Older
1 2
[routes]
; Site principal
3 4 5 6
GET|POST @home:/=Controller\Campaign->show
GET @faq:/faq=Controller\Campaign->faq
GET @merci:/merci=Controller\Campaign->merci
POST @donate:/donate=Controller\Campaign->donate
7 8

; Page de retour de la banque
9
POST @cb:/cb=Controller\Bank->cb
10 11

; Pages d'administration personnelle
12 13 14 15 16 17 18 19
GET|POST @perso:/perso=Controller\Perso->show
POST|GET @login:/login=Controller\Perso->login
GET|POST @logout:/perso/logout=Controller\Perso->logout
GET|POST @cancel:/cancel/@id=Controller\Perso->cancel
POST @infos:/infos=Controller\Perso->infos
POST @add_contrepartie:/add/contrepartie=Controller\Perso->add_contrepartie
POST @adresses:/perso/adresses=Controller\Perso->adresses
GET @recu:/receipt/@id=Controller\Perso->receipt
20 21

; Cron jobs
22 23
GET /cron/@action=Controller\Cron->@action
GET /cron/piplome/@id=Controller\Cron->piplome
24 25

; Pages d'administration
26 27 28 29
GET|POST @admin:/admin=Controller\Admin->show
GET @add_support:/admin/support/add=Controller\Admin->support
GET @edit_support:/admin/support/edit/@id=Controller\Admin->support
POST @modify_support:/admin/support/edit=Controller\Admin->support
30 31
GET @invalidate_support:/admin/support/invalidate/@id=Controller\Admin->invalidate
GET @validate_support:/admin/support/validate/@id=Controller\Admin->validate
okhin's avatar
okhin committed
32 33
GET @recompute_total:/admin/recompute/total=Controller\Admin->recompute_total
GET @recompute_cumul:/admin/recompute/cumul=Controller\Admin->recompute_cumul
34

35
GET|POST @admin_accounts:/admin/accounts=Controller\Admin->accounts
36

37 38 39
GET|POST @counterparts:/admin/counterparts=Controller\Admin->counterparts
POST @export:/counterparts/admin/export=Controller\Admin->counterparts
GET|POST @edit_counterpart:/admin/counterparts/edit/@id=Controller\Admin->counterpart
40

41 42
GET|POST @cbs:/admin/cbs=Controller\Admin->cbs
POST @export_cbs:/admin/cbs/export=Controller\Admin->cbs
43

44 45 46 47
GET|POST @users:/admin/users=Controller\Admin->users
POST @add_user:/admin/users/add=Controller\Admin->user
GET @user_info:/admin/users/@id=Controller\Admin->user
POST @modify_user:/admin/users/@id=Controller\Admin->user
48

49
POST @adresse:/admin/adresses=Controller\Admin->adresse
50

51
GET|POST @counterparts_dashboard:/admin/counterparts_dashboard=Controller\Admin->counterparts_dashboard
52

53
GET|POST @banque:/admin/banque=Controller\Admin->banque
54

55
GET @stats:/admin/stats=Controller\Admin->stats
56