mirror of
https://github.com/neocities/neocities.git
synced 2025-07-24 03:20:40 +02:00
read file directly in because of some weird cross domain issue
This commit is contained in:
parent
06597748ea
commit
0bf3cf409e
2 changed files with 7 additions and 11 deletions
2
app.rb
2
app.rb
|
@ -149,7 +149,7 @@ post '/site_files/delete' do
|
|||
end
|
||||
|
||||
get '/site_files/text_editor/:filename' do |filename|
|
||||
@file_url = "http://#{current_site.username}.neocities.org/#{filename}"
|
||||
@file_data = File.read File.join(site_base_path(current_site.username), filename)
|
||||
slim :'site_files/text_editor'
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue