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:
@@ -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"))
|
||||
|
Reference in New Issue
Block a user