# PODNAME: Yancy::Guides::Editor # ABSTRACT: Configuring and Extending the Yancy Editor __END__ =pod =head1 NAME Yancy::Guides::Editor - Configuring and Extending the Yancy Editor =head1 VERSION version 1.081 =head1 Authentication / Authorization To configure authentication for the editor, first set up an Auth plugin like L or L. With an authentication plugin configured, the editor will require a logged-in user. To further limit which users can use the editor, set the C configuration with a hashref to match against the current user (a L matched using L). use Mojolicious::Lite; plugin Yancy => { ... editor => { require_user => { # Users must have "is_admin" set to "1" to use the editor is_admin => 1, }, }, }; =head1 Custom Editor API To customize how Yancy responds to API requests with data, you can create a custom controller and set the class name as the C. For details how to create a custom controller, see L. use Mojolicious::Lite; plugin Yancy => { ... editor => { default_controller => 'MyController', }, }; This allows you to alter how the editor reads and writes data. For example, you could use it to add authorization to individual rows, or require an approval workflow before displaying content. =head1 AUTHOR Doug Bell =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2021 by Doug Bell. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut