Added frontend

This commit is contained in:
2026-04-03 11:51:36 +02:00
parent 12678f8241
commit 29ee01afba
30 changed files with 1 additions and 337 deletions
+5
View File
@@ -0,0 +1,5 @@
package models
type APIError struct {
Message string `json:"message"`
}
+47
View File
@@ -0,0 +1,47 @@
package models
type ForwardRule struct {
ID string `json:"id"`
Source string `json:"source"`
Destination string `json:"destination"`
StatusCode int `json:"status_code"`
Regex bool `json:"regex"`
}
type Header struct {
ID string `json:"id"`
Key string `json:"key"`
Value string `json:"value"`
}
type CustomHeaders struct {
ID string `json:"id"`
Source string `json:"source"`
Regex bool `json:"regex"`
Headers []Header `json:"headers"`
}
type Site struct {
ID string `json:"id"`
GitServer string `json:"git_server"`
Owner string `json:"owner"`
Repository string `json:"repository"`
Branch string `json:"branch"`
Domain string `json:"domain"`
DeployToken string `json:"deploy_token"`
Enabled bool `json:"enabled"`
Spa bool `json:"spa"`
NotFoundFile string `json:"not_found_file"`
ForwardRules []ForwardRule `json:"forward_rules"`
CustomHeaders []CustomHeaders `json:"custom_headers"`
}
type GetAllSitesResponse struct {
Sites []Site `json:"sites"`
Total int `json:"total"`
}
type CreateSiteResponse struct {
Site Site `json:"site"`
RawDeployToken string `json:"raw_deploy_token"`
}