package com.sgtest.controllers

import javax.inject.Inject
import com.sgtest.services.UserService
import com.twitter.finatra.http.Controller



class AuthenticationController @Inject()(userService: UserService)
  extends Controller {

//  post("/register") { request:  =>
//    userService.registerUser(request.toThrift) handle {
//      case _: Exception => response.status(420)
//    }
//  }
//
//  post("/login") { request: RegisterUserRequest =>
//    userService.login(request.toThrift) handle {
//      case e: Exception => response.status(401)
//        response.unauthorized( e.getMessage)
//    }
//  }

}
