This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class BakeryPOS_API { | |
| public function __construct() { | |
| // Constructor, aunque esté vacío, es una buena práctica tenerlo. | |
| } | |
| public function register_routes() { | |
| // --- TUS RUTAS ORIGINALES DEL TPV (INTACTAS) --- | |
| register_rest_route('bakerypos/v1', '/login', [ |