Commit 6ababb63 authored by Mindiell's avatar Mindiell

Restructuration of routes

parent 41e41368
[routes]
; Main site
GET @home:/=Main->home
GET @home:/=Main->home
GET|POST @feedback:/feedback=Main->feedbackform
GET|POST @call:/call/@id=Main->call
GET @contactslist:/contactslist=Main->contactslist
POST @feedbacksip:/feedbacksip=Main->feedbacksip
; Fake REST API
GET /restapi/campaign/@id=RestApi->campaign
GET /restapi/campaign/@id/contacts=RestApi->contacts
GET /restapi/campaign/@id/contact=RestApi->contact
GET /restapi/campaign/@id/contact/@contact=RestApi->contact
GET /restapi/campaign/@id/groups=RestApi->groups
GET /restapi/campaign/@id/feedback/categories=RestApi->categories
POST /restapi/campaign/@id/feedback/add=RestApi->feedback_add
GET /restapi/campaign/@id/arguments/@lang=RestApi->arguments
GET /restapi/campaign/@id=RestApi->campaign
GET /restapi/campaign/@id/contacts=RestApi->contacts
GET /restapi/campaign/@id/contact=RestApi->contact
GET /restapi/campaign/@id/contact/@contact=RestApi->contact
GET /restapi/campaign/@id/groups=RestApi->groups
GET /restapi/campaign/@id/feedback/categories=RestApi->categories
POST /restapi/campaign/@id/feedback/add=RestApi->feedback_add
GET /restapi/campaign/@id/arguments/@lang=RestApi->arguments
GET|POST @feedback:/feedback=Main->feedbackform
GET|POST @call:/call/@id=Main->call
GET @contactslist:/contactslist=Main->contactslist
POST @feedbacksip:/feedbacksip=Main->feedbacksip
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment