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:
26
RestControllers/moviesController.php
Normal file
26
RestControllers/moviesController.php
Normal file
@ -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;
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user