| 1 | package Daje::Plugin::Companies::Routes; | ||
| 2 | use Mojo::Base -base, -signatures; | ||
| 3 | use v5.42; | ||
| 4 | |||
| 5 | # NAME | ||
| 6 | # ==== | ||
| 7 | # | ||
| 8 | # Daje::Plugin::Companies::Routes - Model class | ||
| 9 | # | ||
| 10 | # SYNOPSIS | ||
| 11 | # ======== | ||
| 12 | # | ||
| 13 | # use Daje::Plugin::Companies::Routes; | ||
| 14 | # | ||
| 15 | # my $class = Daje::Plugin::Companies::Routes->new(); | ||
| 16 | # $r->get('/companies/api/v1/users/:companies_users_pkey'); | ||
| 17 | # $r->get('/companies/api/v1/users_companies/:companies_companies_fkey'); | ||
| 18 | |||
| 19 | |||
| 20 | # $r->get('/companies/api/v1/users_users/:companies_users_fkey'); | ||
| 21 | |||
| 22 | |||
| 23 | # $r->get('/companies/api/v1/companies/:companies_companies_pkey'); | ||
| 24 | # $r->get('/companies/api/v1/companies_workflow/:companies_workflow_fkey'); | ||
| 25 | |||
| 26 | # | ||
| 27 | # | ||
| 28 | # DESCRIPTION | ||
| 29 | # =========== | ||
| 30 | # | ||
| 31 | # Daje::Plugin::Companies::Routes is the standard routes | ||
| 32 | # | ||
| 33 | # METHODS | ||
| 34 | # ======= | ||
| 35 | # | ||
| 36 | # | ||
| 37 | # LICENSE | ||
| 38 | # ======= | ||
| 39 | # | ||
| 40 | # Copyright (C) janeskil1525. | ||
| 41 | # | ||
| 42 | # This library is free software; you can redistribute it and/or modify | ||
| 43 | # it under the same terms as Perl itself. | ||
| 44 | # | ||
| 45 | # AUTHOR | ||
| 46 | # ====== | ||
| 47 | # | ||
| 48 | # janeskil1525 E<lt>janeskil1525@gmail.com | ||
| 49 | # | ||
| 50 | |||
| 51 | # This file is generated automatically by Daje Tools 2026-03-15 11:17:38. | ||
| 52 | # It will be generated by Daje Tools again. | ||
| 53 | # <!-- Autogenerated file 2026-03-15 11:17:38 --> | ||
| 54 | |||
| 55 | our $VERSION = '0.01'; | ||
| 56 | |||
| 57 | sub routes($self, $app, $config) { | ||
| 58 | my $r = $app->auth; | ||
| 59 | |||
| 60 | $r->get('v1/users_list_all/')->to('CompaniesUsersList#load_all_companies_users'); | ||
| 61 | $r->get('v1/users_companies_list/:companies_companies_fkey')->to('CompaniesUsers#load_list_companies_companies_fkey'); | ||
| 62 | $r->get('v1/users_users_list/:users_users_fkey')->to('CompaniesUsers#load_list_users_users_fkey'); | ||
| 63 | $r->get('v1/companies_list_all/')->to('CompaniesCompaniesList#load_all_companies_companies'); | ||
| 64 | $r->get('v1/companies_workflow_list/:companies_workflow_fkey')->to('CompaniesCompanies#load_list_companies_workflow_fkey'); | ||
| 65 | |||
| 66 | $r->get('v1/users_companies/:companies_companies_fkey')->to('CompaniesUsers#load_companies_companies_fkey'); | ||
| 67 | $r->get('v1/users_users/:companies_users_fkey')->to('CompaniesUsers#load_companies_users_fkey'); $r->get('v1/users/:companies_users_pkey')->to('CompaniesUsers#load_companies_users_pkey'); | ||
| 68 | $r->get('v1/companies_workflow/:companies_workflow_fkey')->to('CompaniesCompanies#load_companies_workflow_fkey'); $r->get('v1/companies/:companies_companies_pkey')->to('CompaniesCompanies#load_companies_companies_pkey'); | ||
| 69 | } | ||
| 70 |