Skip to content

Commit

Permalink
add: get and post methods
Browse files Browse the repository at this point in the history
  • Loading branch information
benchambule committed Aug 22, 2024
1 parent e9f418a commit e0346ec
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,15 @@ class Lottus {
}

info(location, result){
this.information(location, result);
return this.information(location, result);
}

get(location, result){
return this.info(location, result);
}

post(location, result){
return this.form(location, result);
}

form(location, result){
Expand All @@ -63,6 +71,8 @@ class Lottus {
at(location, info, proc){
this.info(location, info);
this.form(location, proc);

return this;
}

get_processor(route_type, location){
Expand Down

0 comments on commit e0346ec

Please sign in to comment.