Skip to content

get/post Action problem  #20

Open
Open
@likegun

Description

@likegun

I have two request GET /user/login for render a login page and POST /user/login for login.
Is there any way to handle this except:

loginAction: function() {
  if (this.isGet()) {
    // render login page
  } else if (this.isPost()) {
    // process login request
  }
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions