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
..
activity.go Propagate context and ensure git commands run in request context (#17868) 2 years ago
attachment.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
blame.go Refactor i18n, use Locale to provide i18n/translation related functions (#18648) 2 years ago
branch.go Make git.OpenRepository accept Context (#19260) 2 years ago
cherry_pick.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
commit.go Make git.OpenRepository accept Context (#19260) 2 years ago
compare.go Make git.OpenRepository accept Context (#19260) 2 years ago
download.go format with gofumpt (#18184) 2 years ago
editor.go Update HTTP status codes to modern codes (#18063) 2 years ago
editor_test.go Make git.OpenRepository accept Context (#19260) 2 years ago
http.go Remove `git.Command.Run` and `git.Command.RunInDir*` (#19280) 2 years ago
http_test.go Fix http path bug (#16117) 3 years ago
issue.go Never use /api/v1 from Gitea UI Pages (#19318) 2 years ago
issue_content_history.go Remove legacy unmaintained packages, refactor to support change default locale (#19308) 2 years ago
issue_dependency.go Update HTTP status codes to modern codes (#18063) 2 years ago
issue_label.go Move some issue methods as functions (#19255) 2 years ago
issue_label_test.go Update HTTP status codes to modern codes (#18063) 2 years ago
issue_lock.go Update HTTP status codes to modern codes (#18063) 2 years ago
issue_stopwatch.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
issue_test.go format with gofumpt (#18184) 2 years ago
issue_timetrack.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
issue_watch.go Update HTTP status codes to modern codes (#18063) 2 years ago
lfs.go Make git.OpenRepository accept Context (#19260) 2 years ago
main_test.go Decouple unit test code from business code (#17623) 3 years ago
middlewares.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
migrate.go Use a more general (and faster) method to sanitize URLs with credentials (#19239) 2 years ago
milestone.go Only view milestones from current repo (#18414) 2 years ago
packages.go Package registry changes (#19305) 2 years ago
patch.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
projects.go Move project files into models/project sub package (#17704) 2 years ago
projects_test.go Decouple unit test code from business code (#17623) 3 years ago
pull.go Remove `git.Command.Run` and `git.Command.RunInDir*` (#19280) 2 years ago
pull_review.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
release.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
release_test.go Decouple unit test, remove intermediate `unittestbridge` package (#17662) 3 years ago
repo.go Never use /api/v1 from Gitea UI Pages (#19318) 2 years ago
search.go Update HTTP status codes to modern codes (#18063) 2 years ago
setting.go Move organization related structs into sub package (#18518) 2 years ago
setting_protected_branch.go Move organization related structs into sub package (#18518) 2 years ago
settings_test.go Move organization related structs into sub package (#18518) 2 years ago
tag.go Move organization related structs into sub package (#18518) 2 years ago
topic.go Renamed ctx.User to ctx.Doer. (#19161) 2 years ago
view.go Use `ctx` instead of `db.DefaultContext` in some packages(routers/services/modules) (#19163) 2 years ago
webhook.go Add Package Registry (#16510) 2 years ago
wiki.go Make git.OpenRepository accept Context (#19260) 2 years ago
wiki_test.go Make git.OpenRepository accept Context (#19260) 2 years ago