Browse Source

Add timestamps to repository api response (#3255)

Additional properties: created_at, updated_at
pull/3256/head
lstahlman 9 years ago committed by 无闻
parent
commit
846bf2ca9f
  1. 2
      routers/api/v1/convert/convert.go

2
routers/api/v1/convert/convert.go

@ -55,6 +55,8 @@ func ToRepository(owner *models.User, repo *models.Repository, permission api.Pe
Stars: repo.NumStars, Stars: repo.NumStars,
Forks: repo.NumForks, Forks: repo.NumForks,
Watchers: repo.NumWatches, Watchers: repo.NumWatches,
Created: repo.Created,
Updated: repo.Updated,
Permissions: permission, Permissions: permission,
} }
} }

Loading…
Cancel
Save