mirror of
https://github.com/neocities/neocities.git
synced 2025-08-03 08:11:56 +02:00
initial integration of text editor
This commit is contained in:
parent
4e4ef8799d
commit
44d785e222
5 changed files with 94 additions and 2 deletions
5
app.rb
5
app.rb
|
@ -148,6 +148,11 @@ post '/site_files/delete' do
|
|||
redirect '/dashboard'
|
||||
end
|
||||
|
||||
get '/site_files/text_editor/:filename' do |filename|
|
||||
@file_url = "http://#{current_site.username}.neocities.org/#{filename}"
|
||||
slim :'site_files/text_editor'
|
||||
end
|
||||
|
||||
get '/terms' do
|
||||
slim :'terms'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue