Skip to content

Commit

Permalink
#7 로그인 통신때 사용할 함수 정의
Browse files Browse the repository at this point in the history
  • Loading branch information
seondal committed Dec 24, 2021
1 parent 4c2ef96 commit c72db98
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Binary file not shown.
27 changes: 27 additions & 0 deletions DalTube/DalTube/Login/UserSignService.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//
// UserSignService.swift
// DalTube
//
// Created by 김선오 on 2021/12/24.
//

import Foundation
import Alamofire

struct UserSignService {
static let shared = UserSignService()

func login(email:String, password: String, completion: @escaping (NetworkResult<Any>) -> (Void)){

let url = APIConstants.loginURL

let header : HTTPHeaders = [
"Content-Type" : "application/json"
]

let body : Parameters = [
"email" : email,
"password" : password
]
}
}

0 comments on commit c72db98

Please sign in to comment.