add a couple post endpoints + /timelines/home
This commit is contained in:
parent
dd72a1f4c1
commit
9f052dc9ef
24 changed files with 462 additions and 32 deletions
|
@ -1,8 +1,9 @@
|
|||
package config
|
||||
|
||||
type Config struct {
|
||||
Core CoreConfig `toml:"core"`
|
||||
Web WebConfig `toml:"web"`
|
||||
Core CoreConfig `toml:"core"`
|
||||
Web WebConfig `toml:"web"`
|
||||
Security SecurityConfig `toml:"security"`
|
||||
}
|
||||
|
||||
type WebConfig struct {
|
||||
|
@ -18,3 +19,8 @@ type CoreConfig struct {
|
|||
Dev bool `toml:"dev"`
|
||||
SecretKey string `toml:"secret_key"`
|
||||
}
|
||||
|
||||
type SecurityConfig struct {
|
||||
RestrictAPI bool `toml:"restrict_api"`
|
||||
PublicTimelines bool `toml:"public_timelines"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue