]> BookStack Code Mirror - bookstack/blobdiff - app/Http/routes.php
Added further attribute endpoints and added tests
[bookstack] / app / Http / routes.php
index 8b7ec3bc27166c85fa73b0bc911aa9293fd1e650..7c6911b2e74df0448708066fbf9aa17c40e1ac70 100644 (file)
@@ -88,6 +88,8 @@ Route::group(['middleware' => 'auth'], function () {
     // Attribute routes (AJAX)
     Route::group(['prefix' => 'ajax/attributes'], function() {
         Route::get('/get/{entityType}/{entityId}', 'AttributeController@getForEntity');
+        Route::get('/suggest', 'AttributeController@getNameSuggestions');
+        Route::post('/update/{entityType}/{entityId}', 'AttributeController@updateForEntity');
     });
 
     // Links