mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-13 23:09:02 +00:00
Added public project attribute & worker access api endpoints
This commit is contained in:
@@ -13,6 +13,7 @@ type CreateProjectRequest struct {
|
||||
Version string `json:"version"`
|
||||
Priority int64 `json:"priority"`
|
||||
Motd string `json:"motd"`
|
||||
Public bool `json:"public"`
|
||||
}
|
||||
|
||||
type CreateProjectResponse struct {
|
||||
@@ -51,6 +52,7 @@ func (api *WebAPI) ProjectCreate(r *Request) {
|
||||
GitRepo: createReq.GitRepo,
|
||||
Priority: createReq.Priority,
|
||||
Motd: createReq.Motd,
|
||||
Public: createReq.Public,
|
||||
}
|
||||
|
||||
if isValidProject(project) {
|
||||
|
||||
Reference in New Issue
Block a user