Skip to content

Commit

Permalink
feat(routes): add routes fro create and destroy text chunks
Browse files Browse the repository at this point in the history
- create_text_chunks handle creation of text_chunks
- destroy text_chunks handle deletion of text_chunks
  • Loading branch information
Jonaspng committed Jan 5, 2025
1 parent 7292b2d commit ba5e5b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ba5e5b1

Please sign in to comment.