# Develop

## Introduction

基于flask,提供如下接口:

```
@home.route('/<path:u>', methods=['GET', 'POST'])
def handler(u):
```
对于任意的url,都会调用handler函数,参数u为url的path部分。如访问: https://localhost:8080/https://github.com/xx/yy.git 时,u为 https://github.com/xx/yy.git

### 三种模式:

白名单:只有在白名单中的url才会被处理,其他的url会返回404
黑名单:只有不在黑名单中的url才会被处理
pass_py: 替换为 cdn 链接,不处理