more progress on visual search

This commit is contained in:
Dylan Knutson
2025-03-04 14:56:42 +00:00
parent f845d06267
commit 0d32ef2802
11 changed files with 563 additions and 3 deletions

View File

@@ -40,6 +40,14 @@ Rails.application.routes.draw do
as: :domain_posts,
only: %i[index show],
controller: "domain/posts" do
collection do
# show the search page to find similar posts
get :visual_search
# display visually similar posts results
post :visual_search,
as: :visual_results,
to: "domain/posts#visual_results"
end
resources :users, only: %i[], controller: "domain/users", path: "" do
get :faved_by, on: :collection, action: :users_faving_post
end