1
0
mirror of https://github.com/pierre42100/ComunicAPI synced 2025-07-14 22:08:11 +00:00

Can get the list of movies of the user

This commit is contained in:
Pierre
2018-01-05 15:12:42 +01:00
parent 27a9d69370
commit 0363f3188f
2 changed files with 47 additions and 0 deletions
RestControllers
classes/components

@ -0,0 +1,26 @@
<?php
/**
* User personnal movies controller
*
* @author Pierre HUBERT
*/
class moviesController {
/**
* Get the list of movies of the user
*
* @url POST /movies/get_list
*/
public function get_movies_list(){
user_login_required(); //Need login
//Fetch the database
$movies = CS::get()->components->movies->get_list(userID);
return $movies;
}
}