Q. How do you define a GET route in Trishul API?

Code:
Router::get('/hello', ["hello"=>"world"]);
  • (A) Router::create('/hello')
  • (B) Router::post('/hello')
  • (C) Router::get('/hello', [...])
  • (D) Router::route('/hello')
πŸ’¬ Discuss
βœ… Correct Answer: (C) Router::get('/hello', [...])
Explanation: Router::get() is used to define GET routes.
Explanation by: Roshan
Router::get() is used to define GET routes.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
6
Total Visits
πŸ“½οΈ
2 mo ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
94%
Success Rate