this repo has no description smallweb.run
smallweb
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove manifest from config for now

pomdtr 5b106ddb 9d7d1fff

+2 -15
+2 -2
api/api.go
··· 135 135 return 136 136 } 137 137 138 - manifestPath := a.Manifest() 138 + manifestPath := filepath.Join(a.Root(), "manifest.json") 139 139 if !utils.FileExists(manifestPath) { 140 140 w.Header().Set("Content-Type", "application/json") 141 141 encoder := json.NewEncoder(w) ··· 191 191 return 192 192 } 193 193 194 - manifestPath := a.Manifest() 194 + manifestPath := filepath.Join(a.Root(), "manifest.json") 195 195 if !utils.FileExists(manifestPath) { 196 196 apps = append(apps, App{ 197 197 Name: a.Name,
-4
api/schemas/manifest.schema.json
··· 23 23 "type": "string" 24 24 } 25 25 }, 26 - "manifest": { 27 - "type": "string", 28 - "default": "manifest.json" 29 - }, 30 26 "crons": { 31 27 "type": "array", 32 28 "description": "Set of cron jobs",
-9
app/app.go
··· 21 21 22 22 type AppConfig struct { 23 23 Entrypoint string `json:"entrypoint,omitempty"` 24 - Manifest string `json:"manifest,omitempty"` 25 24 Root string `json:"root,omitempty"` 26 25 Private bool `json:"private,omitempty"` 27 26 PublicRoutes []string `json:"publicRoutes,omitempty"` ··· 145 144 } 146 145 147 146 return app, nil 148 - } 149 - 150 - func (me App) Manifest() string { 151 - if me.Config.Manifest != "" { 152 - return filepath.Join(me.Root(), me.Config.Manifest) 153 - } else { 154 - return filepath.Join(me.Root(), "manifest.json") 155 - } 156 147 } 157 148 158 149 func (me App) Entrypoint() string {