Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jatbi authored Sep 6, 2024
1 parent 9366823 commit 3eaff74
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,8 @@ public function validateJWT($token)
return $this->decodeJWT($token) !== null;
}
// Đăng ký route với phương thức GET
public function get($route, $callback = null){
return $this->registerRoute('GET', $route, $callback);
}
// Đăng ký route với phương thức POST
public function post($route, $callback = null){
return $this->registerRoute('POST', $route, $callback);
}
// Đăng ký route với phương thức PUT
public function put($route, $callback = null){
return $this->registerRoute('PUT', $route, $callback);
public function router($route, $method, $callback = null){
return $this->registerRoute($method, $route, $callback);
}
// Đăng ký component
public function setComponent($name, $callback){
Expand Down

0 comments on commit 3eaff74

Please sign in to comment.