Skip to content

feat: Two-form and three-form routes #79

@ralflang

Description

@ralflang

Depends on #78

Add routes in config/routes.php:

// Two-form: legacy URL pattern
'/services/ajax.php/{app}/{action}'  →  AjaxDispatchController
    middleware: [AuthHordeSession]
    methods: GET, POST

// Three-form: explicit interface.method
'/services/ajax.php/{app}/ajax/{qualifiedMethod}'  →  AjaxDispatchController
    middleware: [JwtAuthMiddleware, AuthHordeSession,
                 DemandAuthenticatedUser, ConditionalCsrfMiddleware]
    methods: GET, POST

The two-form route is reachable when traffic goes through the router
(responsive UI). Legacy Horde::url('services/ajax.php') direct script
hits still go to services/ajax.php — no behavioral change. Three-form
is a new URL pattern that nothing calls yet, purely additive.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions