mirror of
https://github.com/neocities/neocities.git
synced 2025-07-23 02:56:05 +02:00
way better autocomplete, ranks by popularity
This commit is contained in:
parent
698c602475
commit
4a4553f676
3 changed files with 11 additions and 11 deletions
4
app.rb
4
app.rb
|
@ -360,8 +360,8 @@ post '/tags/remove' do
|
|||
redirect request.referer
|
||||
end
|
||||
|
||||
get '/tags/suggestions/:name.json' do |name|
|
||||
Tag.suggestions(name).collect {|t| t.name}.to_json
|
||||
get '/tags/autocomplete/:name.json' do |name|
|
||||
Tag.autocomplete(name).collect {|t| t[:name]}.to_json
|
||||
end
|
||||
|
||||
get '/browse/?' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue