NAME

Mojo::Leds::Page - Controller for handling page routes

VERSION

version 1.18

SYNOPSIS

use Mojo::Leds::Page;

DESCRIPTION

This module provides a controller for handling different formats of page routes in a Mojolicious application.

METHODS

route

$s->route($respond_to_opt);

This method handles routing for different formats (html, json, css, js) based on the request. It sets the appropriate format in the stash and responds accordingly.

  • $respond_to_opt - Optional hash reference for additional respond_to options.

NAME

Mojo::Leds::Page - Controller for handling page routes

AUTHOR

Emiliano Bruni <info@ebruni.it>

LICENSE

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Emiliano Bruni <info@ebruni.it>

COPYRIGHT AND LICENSE

This software is copyright (c) 2022 by Emiliano Bruni.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.