mirror of
https://github.com/Ysurac/openmptcprouter-vps-admin.git
synced 2025-02-12 18:41:52 +00:00
Fix for shadowsocks post
This commit is contained in:
parent
70d194a053
commit
d10afe5e88
1 changed files with 1 additions and 1 deletions
|
@ -453,7 +453,7 @@ class ShadowsocksConfigparams(BaseModel):
|
|||
ebpf: bool
|
||||
key: str
|
||||
|
||||
@app.get('/shadowsocks')
|
||||
@app.post('/shadowsocks')
|
||||
def shadowsocks(*,params: ShadowsocksConfigparams,current_user: User = Depends(get_current_user)):
|
||||
with open('/etc/shadowsocks-libev/config.json') as f:
|
||||
content = f.read()
|
||||
|
|
Loading…
Reference in a new issue