mirror of
https://github.com/neocities/neocities.git
synced 2025-08-03 08:11:56 +02:00
api: include file sha1 hash in /api/list (#252)
This commit is contained in:
parent
556bc9d2be
commit
8d0e339f72
3 changed files with 10 additions and 4 deletions
|
@ -32,6 +32,7 @@ get '/api/list' do
|
|||
new_file[:is_directory] = file[:is_directory]
|
||||
new_file[:size] = file[:size] unless file[:is_directory]
|
||||
new_file[:updated_at] = file[:updated_at].rfc2822
|
||||
new_file[:sha1_hash] = file[:sha1_hash] unless file[:is_directory]
|
||||
files << new_file
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue