mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-23 22:09:29 +00:00
Created Settings component and controller.
This commit is contained in:
parent
a8de1854a9
commit
bb752d6fb1
23
RestControllers/SettingsController.php
Normal file
23
RestControllers/SettingsController.php
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* API Settings controller
|
||||||
|
*
|
||||||
|
* @author Pierre HUBERT
|
||||||
|
*/
|
||||||
|
|
||||||
|
class SettingsController {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get general account settings
|
||||||
|
*
|
||||||
|
* @url POST /settings/get_general
|
||||||
|
*/
|
||||||
|
public function getGeneral(){
|
||||||
|
|
||||||
|
user_login_required(); //Login needed
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
15
classes/components/SettingsComponent.php
Normal file
15
classes/components/SettingsComponent.php
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Settings component
|
||||||
|
*
|
||||||
|
* @author Pierre HUBERT
|
||||||
|
*/
|
||||||
|
|
||||||
|
class SettingsComponents {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//Register component
|
||||||
|
Components::register("settings", new SettingsComponents());
|
Loading…
Reference in New Issue
Block a user