]> BookStack Code Mirror - bookstack/blobdiff - app/Http/routes.php
Got image uploads working
[bookstack] / app / Http / routes.php
index ec9cb7c6f4bcf9c0b62d0ecce9147d0fc2d0d81d..8840a62d5ef768cce8530bf633cbf8a84344feee 100644 (file)
@@ -29,6 +29,10 @@ Route::group(['prefix' => 'books'], function() {
     Route::put('/{bookSlug}/{pageSlug}', 'PageController@update');
 });
 
+Route::post('/upload/image', 'ImageController@upload');
+
+Route::get('/images/{any}', 'ImageController@getImage')->where('any', '.*');
+
 Route::get('/', function () {
     return view('base');
 });