Skip to content
  • pgjones's avatar
    Add syntatic sugar for route registration · 705e5268
    pgjones 创作于
    This takes a popular API whereby instead of passing the HTTP method as
    an argument to route it is instead used as the method name i.e.
    
        @app.route("/", methods=["POST"])
    
    is now writeable as,
    
        @app.post("/")
    
    This is simply syntatic sugar, it doesn't do anything else, but makes
    it slightly easier for users.
    
    I've included all the methods that are relevant and aren't auto
    generated i.e. not connect, head, options, and trace.
    705e5268
要在任何这些版本中查找此项目存储库的状态,请检查 标签。.
加载中