Skip to content
This repository was archived by the owner on Jul 11, 2019. It is now read-only.
This repository was archived by the owner on Jul 11, 2019. It is now read-only.

装饰器login_check会对所有接口验签,所以增加了个开关,在第三方执行时无需验签 #149

Open

Description

@Verckolf

思路:利用uri的前缀来区分,如果是/api/则走老逻辑,如果是/admin/则跳过验签。
做法:
1、在process函数中,将/admin/也映射到ApiManager
2、装饰器login_check,利用request.path.split('/')[1]做个if判断

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions