Add commit timestamp to app list to allow sorting by most recent
One functionality I'm missing in the app index is sorting by most recently published and showing publication timestamp.
This change adds a timestamp
field to each app in the app index, filled with commit timestamp from app's Git. This can be later used by the frontend to show or sort by the timestamp.
$ curl http://localhost:8080/api/apps.json | jq '.apps[23]'
{
"repoUrl": "https://git.flow3r.garden/pippin/cccamp2023-map",
"commit": "af03584a38287d7038f72126140ec6944ea0a408",
"downloadUrl": "https://flow3r.garden/api/apps/zip/pippin/cccamp2023-map.zip",
"tarDownloadUrl": "https://flow3r.garden/api/apps/tar/pippin/cccamp2023-map.tar.gz",
"name": "CCCamp-2023-Map",
"menu": "Apps",
"author": "pippin",
"description": "A networked map viewer",
"version": 0,
"timestamp": "2023-08-17T19:05:03Z",
"stars": 1,
"flow3rSeed": "12424301"
}
Edited by Psentee