Router:PHP类可以使用REST API

时间:2021-05-01 08:10:08
【文件属性】:
文件名称:Router:PHP类可以使用REST API
文件大小:22KB
文件格式:ZIP
更新时间:2021-05-01 08:10:08
php json rest-api jwt-token template-view 路由器 PHP类可以使用REST API 模板加载器 Router::view("home.html"); 根据标志更改模板的内容(模板视图) Router::view("home.html", ["#{titulo}#" => "Bem vindo ao site"] ); 智威汤逊| 创建Jwt Router::Jwt(); 智威汤逊| 验证Jwt 在授权中发送jwt,请求标头。 如果jwt无效,它将切断应用程序流并生成错误 Router::validateJwt(); HTTP GET Router::get('/', function(){ Router::view("home.html", ["#{titulo}#" => "Bem vindo ao site"] ); }); 在端点具有动态参数的HTTP GET | {范围} Router::get('/i
【文件预览】:
Router-master
----client()
--------home.html(150B)
--------notFound.html(22KB)
----server()
--------Router.php(5KB)
----index.php(1014B)
----Config.php(620B)
----.htaccess(552B)
----README.md(2KB)

网友评论