Skip to content

teknasyon-bootcamp/samet-utku-teknasyon-proje

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

|||| Default Database Configuration
MYSQL_ROOT_PASSWORD=sam
MYSQL_USER=user
MYSQL_PASSWORD=sam
MYSQL_DATABASE=database

|||| Users
USER
mail: [email protected]
password: 123
Editor
mail: [email protected]
password: 123
Moderator
mail: [email protected]
password: 123
Admin
mail: [email protected]
password: 123

|||| Route and Controllers
/* DynamicPages */
$router->add("POST",["url"=>"/","controller"=>"index","action"=>"pageViewer","dynamic"=>1]);
$router->add("POST",["url"=>"/news","controller"=>"news_Controller","action"=>"index","dynamic"=>1]);
$router->add("POST",["url"=>"/category","controller"=>"news_Controller","action"=>"category","dynamic"=>1]);
/* Membership Signup or Signin */
$router->add("POST",["url"=>"/api/members/signup","controller"=>"signup_Controller","action"=>"Signup"]);
$router->add("POST",["url"=>"/api/members/signin","controller"=>"signin_Controller","action"=>"Signin"]);
/* Comment Add */
$router->add("POST",["url"=>"/api/comments/add","controller"=>"comments_Controller","action"=>"add"]);
/* Panel */
$router->add("POST",["url"=>"/panel","controller"=>"panel_Controller","action"=>"index","middleware"=>function(){ return (new \Core\middleware\auth)->rule(["permissions"=>["user"]]); } ]);
$router->add("POST",["url"=>"/logout","controller"=>"panel_Controller","action"=>"logout","middleware"=>function(){ return (new \Core\middleware\auth)->rule(["permissions"=>["user"]]); } ]);
/* Panel Editor */
$router->add("POST",["url"=>"/panel/news","controller"=>"panel_Controller","action"=>"editor","middleware"=>function(){ return (new \Core\middleware\auth)->rule(["permissions"=>["editor"]]); } ]);
/* Category Editor */
$router->add("POST",["url"=>"/panel/news/categoryAdd","controller"=>"panel_Controller","action"=>"categoryAdd","middleware"=>function(){ return (new \Core\middleware\auth)->rule(["permissions"=>["editor"]]); } ]);
$router->add("POST",["url"=>"/panel/news/categoryDelete","controller"=>"panel_Controller","action"=>"categoryDelete","middleware"=>function(){ return (new \Core\middleware\auth)->rule(["permissions"=>["editor"]]); } ]);
/* News Editor */
$router->add("POST",["url"=>"/panel/news/newsAdd","controller"=>"panel_Controller","action"=>"newsAdd","middleware"=>function(){ return (new \Core\middleware\auth)->rule(["permissions"=>["editor"]]); } ]);
$router->add("POST",["url"=>"/panel/news/newsDelete","controller"=>"panel_Controller","action"=>"newsDelete","middleware"=>function(){ return (new \Core\middleware\auth)->rule(["permissions"=>["editor"]]); } ]);
/* User Editor */
$router->add("POST",["url"=>"/panel/users","controller"=>"panel_Controller","action"=>"moderator_admin","middleware"=>function(){ return (new \Core\middleware\auth)->rule(["permissions"=>["moderator"]]); } ]);
$router->add("POST",["url"=>"/panel/user/update","controller"=>"panel_Controller","action"=>"userUpdate","middleware"=>function(){ return (new \Core\middleware\auth)->rule(["permissions"=>["moderator"]]); } ]);
$router->add("POST",["url"=>"/panel/user/delete","controller"=>"panel_Controller","action"=>"userDelete","middleware"=>function(){ return (new \Core\middleware\auth)->rule(["permissions"=>["moderator"]]); } ]);
/* Last Activities */
$router->add("POST",["url"=>"/panel/latest","controller"=>"panel_Controller","action"=>"latest","middleware"=>function(){ return (new \Core\middleware\auth)->rule(["permissions"=>["user"]]); } ]);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published