Bläddra i källkod

add offline-index

visuddhinanda 2 år sedan
förälder
incheckning
4349fc3c75
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4 0
      routes/api.php

+ 4 - 0
routes/api.php

@@ -191,6 +191,10 @@ Route::group(['prefix' => 'v2'],function(){
         return file_get_contents(public_path("app/palicanon/category/{$file}.json"));
     });
 
+    Route::get('offline-index', function () {
+        return file_get_contents(storage_path("app/public/export/offline/index.json"));
+    });
+
     Route::get('guide/{lang}/{file}', function ($lang,$file) {
         $filename = public_path("app/users_guide/{$lang}/{$file}.md");
         if(file_exists($filename)){