From ba5e5b1c57885f36540cce3a12205da752ff0fe7 Mon Sep 17 00:00:00 2001 From: Jonaspng Date: Mon, 9 Dec 2024 22:17:13 +0800 Subject: [PATCH] feat(routes): add routes fro create and destroy text chunks - create_text_chunks handle creation of text_chunks - destroy text_chunks handle deletion of text_chunks --- config/routes.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 3a81b9444b0..e3dec98fafb 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -414,7 +414,10 @@ post 'create/subfolder', on: :member, as: 'create_subfolder', action: 'create_subfolder' put 'upload_materials', on: :member get 'download', on: :member - resources :materials, path: 'files' + resources :materials, path: 'files' do + put 'create_text_chunks', on: :member + delete 'destroy_text_chunks', on: :member + end end end