TODO
(c *fiber.Ctx)
| 66 | |
| 67 | // TODO |
| 68 | func GetSettings(c *fiber.Ctx) error { |
| 69 | settings := bridge.Config{ |
| 70 | SleepTime: bridge.SleepTime{ |
| 71 | EndTime: nil, |
| 72 | Enabled: true, |
| 73 | StartTime: nil, |
| 74 | }, |
| 75 | TrendLocation: []bridge.TrendLocation{ |
| 76 | { |
| 77 | Name: "Worldwide", |
| 78 | Woeid: 1, |
| 79 | PlaceType: bridge.PlaceType{ |
| 80 | Name: "Supername", |
| 81 | Code: 19, |
| 82 | }, |
| 83 | Country: "", |
| 84 | URL: "http://where.yahooapis.com/v1/place/1", |
| 85 | CountryCode: nil, |
| 86 | }, |
| 87 | }, |
| 88 | Language: "en", |
| 89 | AlwaysUseHttps: false, |
| 90 | DiscoverableByEmail: true, |
| 91 | TimeZone: bridge.TimeZone{ |
| 92 | Name: "Pacific Time (US & Canada)", |
| 93 | TzinfoName: "America/Los_Angeles", |
| 94 | UtcOffset: -28800, |
| 95 | }, |
| 96 | GeoEnabled: true, |
| 97 | } |
| 98 | return EncodeAndSend(c, settings) |
| 99 | |
| 100 | } |
| 101 | |
| 102 | func UpdateProfile(c *fiber.Ctx) error { |
| 103 | // auth |
nothing calls this directly
no test coverage detected