Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TCL live eco+
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GUILLIER THOMAS p2312389
TCL live eco+
Merge requests
!7
Ajout route API pour récupérer toutes les informations du transport
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Ajout route API pour récupérer toutes les informations du transport
TransportDetailBackend
into
main
Overview
0
Commits
1
Pipelines
0
Changes
6
Merged
GUILLIER THOMAS p2312389
requested to merge
TransportDetailBackend
into
main
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
6
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
5a0757ae
1 commit,
1 year ago
6 files
+
34
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
backend/src/Controller/TransportsController.php
+
7
−
0
Options
@@ -2,6 +2,7 @@
namespace
App\Controller
;
use
App\Entity\Transports
;
use
App\Services\TransportsServices
;
use
Symfony\Bundle\FrameworkBundle\Controller\AbstractController
;
use
Symfony\Component\HttpFoundation\JsonResponse
;
@@ -23,4 +24,10 @@ class TransportsController extends AbstractController
$keyword
=
$request
->
get
(
'keyword'
,
''
);
return
$transportsServices
->
getTransportsFromKeyword
(
$keyword
);
}
#[Route('/{id}', name:'detailTransport', methods: 'GET')]
public
function
getTransportDetail
(
Transports
$transport
,
TransportsServices
$transportsServices
):
JsonResponse
{
return
$transportsServices
->
getTransportDetails
(
$transport
);
}
}
\ No newline at end of file
Loading