add a couple post endpoints + /timelines/home

This commit is contained in:
sam 2023-09-06 16:32:33 +02:00
parent dd72a1f4c1
commit 9f052dc9ef
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
24 changed files with 462 additions and 32 deletions

View file

@ -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"`
}