1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 10:18:38 +00:00

api(refactor): minimize number of endpoints to 2 by refactoring current logic

This commit is contained in:
eyad-hussein
2024-07-14 11:43:05 +03:00
parent bc0fca4ff3
commit d5a1ce1dfd
3 changed files with 59 additions and 119 deletions

View File

@@ -72,7 +72,6 @@ func GetProjects(ctx *context.APIContext) {
ctx.JSON(http.StatusOK, convert.ToProjects(ctx, projects))
}
// TODO: Send issues as well
// GetProject returns a project by ID
func GetProject(ctx *context.APIContext) {
project, err := project_model.GetProjectByID(ctx, ctx.PathParamInt64(":id"))