Skip to content

Commit 37b253b

Browse files
committed
Add config to the toml file
1 parent c5c7f2f commit 37b253b

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
##################################################
1111
# [ Plugin ] api_key
1212
##################################################
13-
# 基础配置
14-
API_KEY_GENERATE_PREFIX: str = 'fba-'
13+
# 基础配置(in plugin.toml)
14+
API_KEY_GENERATE_PREFIX: str
1515
```
1616

1717
## 使用方式

plugin.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ extend = 'admin'
1212
[api.api_key]
1313
prefix = '/api-keys'
1414
tags = '系统 API Key'
15+
16+
[settings]
17+
API_KEY_GENERATE_PREFIX = 'fba-'

0 commit comments

Comments
 (0)