forgejo/routers/api/v1/admin
Lunny Xiao c59a057297
Refactor rename user and rename organization (#24052)
This PR is a refactor at the beginning. And now it did 4 things.
- [x] Move renaming organizaiton and user logics into services layer and
merged as one function
- [x] Support rename a user capitalization only. For example, rename the
user from `Lunny` to `lunny`. We just need to change one table `user`
and others should not be touched.
- [x] Before this PR, some renaming were missed like `agit`
- [x] Fix bug the API reutrned from `http.StatusNoContent` to `http.StatusOK`
2023-05-21 23:13:47 +08:00
..
adopt.go Fix unclear IsRepositoryExist logic (#24374) 2023-04-28 14:14:26 -04:00
cron.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
email.go add admin API email endpoints (#22792) 2023-03-14 03:54:40 -04:00
hooks.go Return 404 in the API if the requested webhooks were not found (#24823) 2023-05-21 10:54:28 +08:00
org.go Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
repo.go Handle missing README in create repos API (#23387) 2023-03-13 16:55:30 -05:00
user.go Refactor rename user and rename organization (#24052) 2023-05-21 23:13:47 +08:00