server: minor, simply get root

This commit is contained in:
King Kévin 2023-01-30 01:04:07 +01:00
parent d2779976b6
commit 47292d659f
1 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,8 @@ after do
end
get '/' do
redirect to('/index.html')
content_type 'text/html'
send_file File.join(settings.public_folder, 'index.html')
end
def get_part_by_id(id)