kiwi-vpn/api/kiwi_vpn_api/plan.md

39 lines
460 B
Markdown
Raw Normal View History

2022-03-18 17:36:44 +00:00
# Startup
if config file present:
- load config file
- connect to DB
- mount all routers
else:
- mount admin router
# PUT admin/config
if config file present:
- if user is admin:
- overwrite config
- reload config, reconnect to DB
else:
- overwrite config
- reload config, connect to DB
- mount all routers
# POST admin/user
if user table is empty:
- create new user
- give "admin" cap to new user
else:
- if user is admin:
- create new user
...