2
0

SuggestionController.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. namespace App\Http\Controllers;
  3. use App\Http\Api\PaliTextApi;
  4. use Illuminate\Http\Request;
  5. use Illuminate\Http\Response;
  6. class SuggestionController extends Controller
  7. {
  8. /**
  9. * Display a listing of the resource.
  10. *
  11. * @return Response
  12. */
  13. public function index()
  14. {
  15. //
  16. switch ($request->input('view')) {
  17. case 'chapter':
  18. $chapter = PaliTextApi::getChapterStartEnd($request->input('book'), $request->input('para'));
  19. if (! $chapter) {
  20. return $this->error('no data');
  21. }
  22. break;
  23. }
  24. }
  25. /**
  26. * Store a newly created resource in storage.
  27. *
  28. * @return Response
  29. */
  30. public function store(Request $request)
  31. {
  32. //
  33. }
  34. /**
  35. * Display the specified resource.
  36. *
  37. * @param \App\Models\Article $article
  38. * @return Response
  39. */
  40. public function show(Article $article)
  41. {
  42. //
  43. }
  44. /**
  45. * Update the specified resource in storage.
  46. *
  47. * @param \App\Models\Article $article
  48. * @return Response
  49. */
  50. public function update(Request $request, Article $article)
  51. {
  52. //
  53. }
  54. /**
  55. * Remove the specified resource from storage.
  56. *
  57. * @param \App\Models\Article $article
  58. * @return Response
  59. */
  60. public function destroy(Article $article)
  61. {
  62. //
  63. }
  64. }