Create initial user if User table is empty. Also make model.QueryOptions compatible with rest.QueryOptions

This commit is contained in:
Deluan
2020-01-19 22:36:15 -05:00
parent 2ab0cecd48
commit 491bfb1f69
11 changed files with 130 additions and 38 deletions
+2 -2
View File
@@ -38,8 +38,8 @@ $ make
The server should start listening for requests. The default configuration is:
- Port: `4533`
- User: `anyone`
- Password: `wordpass`
- User: `admin`
- Password: `admin`
To override this or any other configuration, create a file named `sonic.toml` in the project folder.
For all options see the [configuration.go](conf/configuration.go) file