Added frontend
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
Reference in New Issue
Block a user