title: Declare enum Router Alamofire swift 2.0
body: <p>I'm trying to follow one example from Matt but i'm facing some strange thing.
  I created one file named Router.swift and paste the following code:</p>
  
  <pre><code>//
  //  Router.swift
  
  import Alamofire
  
  enum Router: URLRequestConvertible {
  static let baseURLString = "http://example.com"
  
  case CreateUser([String: AnyObject])
  case ReadUser(String)
  case UpdateUser(String, [String: AnyObject])
  case DestroyUser(String)
  
  var method: Alamofire.Method {
      switch self {
      case .CreateUser:
          return .POST
      case .ReadUser:
          return .GET
      case .UpdateUser:
          return .PUT
      case .DestroyUser:
          return .DELETE
      }
  }
  
  var path: String {
      switch self {
      case .CreateUser:
          return "/users"
      case .ReadUser(let username):
          return "/users/\(username)"
      case .UpdateUser(let username, _):
          return "/users/\(username)"
      case .DestroyUser(let username):
          return "/users/\(username)"
      }
  }
  }
  </code></pre>
  
  <p>And I'm getting the following error:</p>
  
  <pre><code>Type 'Router' does not conform to protocol 'URLRequestConvertible'
  </code></pre>
  
  <p>I'm using Alamofire branch swift-2.0 
  Xcode 7R6</p>
  
  <p>Any idea ?</p>
  
  <p>Thank you</p>