1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-11 05:30:03 -04:00
gitea/routers
Allen Wild c40f5d2d4c api: repos/search: add parameters to control the sort order (#3964)
The backend SearchRepositoryByName function supports several sort order
options, hook these up to the /repos/search API.

New parameters for /repos/search:
    'sort':  alpha, created, updated, size, or id
    'order': asc or desc

'sort' defaults to alpha.
'order' defaults to ascending, and is ignored if 'sort' is not specified.
The overall default behavior is unchanged (alphabetically ascending).

This partially implements issue #3963

Signed-off-by: Allen Wild <allenwild93@gmail.com>
2018-08-02 16:10:02 +08:00
..
admin
api/v1 api: repos/search: add parameters to control the sort order (#3964) 2018-08-02 16:10:02 +08:00
dev
org
private
repo fix IsPullReuqestBroken->IsPullRequestBroken (#4578) 2018-08-01 11:00:35 +08:00
routes Swagger.v1.json template (#3572) 2018-07-28 03:19:01 +03:00
user fix panic issue on update avatar email (#4580) (#4581) 2018-08-01 17:38:56 +08:00
utils
home.go
init.go
install.go Keep preseeded database password (#4284) 2018-07-03 20:09:55 -04:00
swagger_json.go Swagger.v1.json template (#3572) 2018-07-28 03:19:01 +03:00