File tree Expand file tree Collapse file tree 4 files changed +14
-4
lines changed
Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
55and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
66
7+ ## [ 0.2.3] - 2020-07-30
8+ ### Added
9+ - File entry will also return created_at and updated_at
10+
711## [ 0.2.2] - 2020-07-30
812### Fixed
913- Fixed the docker-compose.yml file with correct environment variables.
Original file line number Diff line number Diff line change @@ -132,9 +132,11 @@ Example:
132132``` json
133133[
134134 {
135- "file" : " 04623fc1-86e8-4be9-bb65-fc1ffad4ba55.pdf" ,
136- "path" : " http://localhost:3000/api/browse/04623fc1-86e8-4be9-bb65-fc1ffad4ba55?signed=r:3026092917;4776ee8a2c9cb3ace3770e3b276b174c"
137- }
135+ "file" : " 1f422c9b-a03c-4ea6-92cb-a47a3d842839.pdf" ,
136+ "path" : " http://localhost:3000/api/browse/1f422c9b-a03c-4ea6-92cb-a47a3d842839?signed=r:7322595290;5d10a8acc4810c24ea9e3bf03a8868e1" ,
137+ "created_at" : " 2020-06-27T22:27:09.876Z" ,
138+ "updated_at" : " 2020-06-27T22:27:09.876Z"
139+ },
138140]
139141```
140142
Original file line number Diff line number Diff line change 11{
22 "name" : " print-api" ,
3- "version" : " 0.2.2 " ,
3+ "version" : " 0.2.3 " ,
44 "description" : " This application allows you to create pdf documents of webpages and posting them to a prefered server/endpoint." ,
55 "author" : " Manuel Pirker Ihl<manuel.pirker-ihl@ambersive.com>" ,
66 "private" : true ,
Original file line number Diff line number Diff line change @@ -38,9 +38,13 @@ export class BrowserController {
3838
3939 result = result . map ( file => {
4040 let id = file . substr ( 0 , file . length - 4 ) ;
41+ let { mtime, ctime } = fs . statSync ( `./storage/${ file } ` ) ;
42+
4143 return {
4244 "file" : file ,
4345 "path" : this . signature . sign ( `${ req . protocol } ://${ req . headers . host } /api/browse/${ id } ` ) ,
46+ "created_at" : ctime ,
47+ "updated_at" : mtime
4448 } ;
4549 } )
4650
You can’t perform that action at this time.
0 commit comments