Skip to content

refactor to a middleware #1

@albin3

Description

@albin3

hc-proxy现在作为业务逻辑挂在router.js下面,导致透传文件时,前序必须挂multer等支持。

正确的排序方式应该在 body-parser、multer这种中间件之前,而在各种auth之后

cookieParser
session
combineAuth
proxy                          应该在这
webpack/staticService
body-parser
multer
businessAuth
logicRouter                    现在在这

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