Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Nov 8, 2024
1 parent e1e7fd5 commit 03e37a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions web/admin/site/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,16 +196,14 @@ def get_domain():
def get_rewrite_list():
return MwSites.instance().getRewriteList()

# 获取默认为静态列表
# 获取站点Rewrite配置
@blueprint.route('/get_rewrite_conf', endpoint='get_rewrite_conf',methods=['POST'])
@panel_login_required
def get_rewrite_conf():
siteName = request.form.get('siteName', '')
rewrite = MwSites.instance().getRewriteConf(siteName)
return {'rewrite': rewrite}



# 设置默认网站信息
@blueprint.route('/get_default_site', endpoint='get_default_site',methods=['POST'])
@panel_login_required
Expand Down

0 comments on commit 03e37a2

Please sign in to comment.