You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lunny Xiao 783a021889
Never use /api/v1 from Gitea UI Pages (#19318)
Reusing `/api/v1` from Gitea UI Pages have pros and cons.
Pros:
1) Less code copy

Cons:
1) API/v1 have to support shared session with page requests.
2) You need to consider for each other when you want to change something about api/v1 or page.

This PR moves all dependencies to API/v1 from UI Pages.

Partially replace #16052
2 years ago
..
blob.go Propagate context and ensure git commands run in request context (#17868) 3 years ago
branch.go Move organization related structs into sub package (#18518) 2 years ago
collaborators.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
commits.go Propagate context and ensure git commands run in request context (#17868) 3 years ago
file.go Make git.OpenRepository accept Context (#19260) 2 years ago
fork.go Make git.OpenRepository accept Context (#19260) 2 years ago
git_hook.go Move macaron to chi (#14293) 4 years ago
git_ref.go Multiple Escaping Improvements (#17551) 3 years ago
hook.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
hook_test.go Decouple unit test, remove intermediate `unittestbridge` package (#17662) 3 years ago
issue.go Never use /api/v1 from Gitea UI Pages (#19318) 2 years ago
issue_comment.go Never use /api/v1 from Gitea UI Pages (#19318) 2 years ago
issue_label.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
issue_reaction.go Move reaction to models/issues/ (#19264) 2 years ago
issue_stopwatch.go Use `ctx` instead of `db.DefaultContext` in some packages(routers/services/modules) (#19163) 2 years ago
issue_subscription.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
issue_tracked_time.go Never use /api/v1 from Gitea UI Pages (#19318) 2 years ago
key.go Use `ctx` instead of `db.DefaultContext` in some packages(routers/services/modules) (#19163) 2 years ago
label.go Move init repository related functions to modules (#19159) 2 years ago
language.go Move repository model into models/repo (#17933) 3 years ago
main_test.go Decouple unit test code from business code (#17623) 3 years ago
migrate.go Use a more general (and faster) method to sanitize URLs with credentials (#19239) 2 years ago
milestone.go format with gofumpt (#18184) 3 years ago
mirror.go An attempt to sync a non-mirror repo must give 400 (Bad Request) (#19300) 2 years ago
notes.go Make git.OpenRepository accept Context (#19260) 2 years ago
patch.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
pull.go Move checks for pulls before merge into own function (#19271) 2 years ago
pull_review.go Move organization related structs into sub package (#18518) 2 years ago
release.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
release_attachment.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
release_tags.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
repo.go Never use /api/v1 from Gitea UI Pages (#19318) 2 years ago
repo_test.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
star.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
status.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
subscriber.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
tag.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
teams.go Move organization related structs into sub package (#18518) 2 years ago
topic.go Some repository refactors (#17950) 3 years ago
transfer.go Move organization related structs into sub package (#18518) 2 years ago
tree.go Propagate context and ensure git commands run in request context (#17868) 3 years ago
wiki.go Make git.OpenRepository accept Context (#19260) 2 years ago