Added dashboard page layout & sites overview
This commit is contained in:
@@ -89,6 +89,9 @@ func validateIncomingSite(site *models.Site) error {
|
||||
if site == nil {
|
||||
return errors.New("site is required")
|
||||
}
|
||||
if site.Name == "" {
|
||||
return errors.New("site name is required")
|
||||
}
|
||||
if site.GitServer == "" {
|
||||
return errors.New("git server required")
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ type CustomHeaders struct {
|
||||
|
||||
type Site struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
GitServer string `json:"git_server"`
|
||||
Owner string `json:"owner"`
|
||||
Repository string `json:"repository"`
|
||||
|
||||
Reference in New Issue
Block a user