Skip to content

Commit

Permalink
➕ [ADD] APIConstants.swift #7
Browse files Browse the repository at this point in the history
  • Loading branch information
seondal committed Dec 24, 2021
1 parent 60f299a commit e10a17c
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 3 deletions.
15 changes: 13 additions & 2 deletions DalTube/DalTube.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objectVersion = 51;
objects = {

/* Begin PBXBuildFile section */
Expand All @@ -21,6 +21,7 @@
9A193E14277333E500231077 /* HomeCollectionViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9A193E12277333E500231077 /* HomeCollectionViewCell.xib */; };
9A193E172773395C00231077 /* TagCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A193E152773395C00231077 /* TagCollectionViewCell.swift */; };
9A193E182773395C00231077 /* TagCollectionViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9A193E162773395C00231077 /* TagCollectionViewCell.xib */; };
9A193E1A27758AB700231077 /* APIConstants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A193E1927758AB700231077 /* APIConstants.swift */; };
9A43F82C27293CDD002DC0D5 /* CustomTabBarController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A43F82B27293CDD002DC0D5 /* CustomTabBarController.swift */; };
9A43F838272944A2002DC0D5 /* HomeVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A43F837272944A2002DC0D5 /* HomeVC.swift */; };
9A43F83A272944B6002DC0D5 /* ShortsVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A43F839272944B6002DC0D5 /* ShortsVC.swift */; };
Expand Down Expand Up @@ -51,6 +52,7 @@
9A193E12277333E500231077 /* HomeCollectionViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = HomeCollectionViewCell.xib; sourceTree = "<group>"; };
9A193E152773395C00231077 /* TagCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TagCollectionViewCell.swift; sourceTree = "<group>"; };
9A193E162773395C00231077 /* TagCollectionViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = TagCollectionViewCell.xib; sourceTree = "<group>"; };
9A193E1927758AB700231077 /* APIConstants.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = APIConstants.swift; sourceTree = "<group>"; };
9A43F82B27293CDD002DC0D5 /* CustomTabBarController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomTabBarController.swift; sourceTree = "<group>"; };
9A43F837272944A2002DC0D5 /* HomeVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeVC.swift; sourceTree = "<group>"; };
9A43F839272944B6002DC0D5 /* ShortsVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShortsVC.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -103,6 +105,7 @@
9A18707C2708521500228B78 /* DalTube */ = {
isa = PBXGroup;
children = (
9A193E1B27758B1100231077 /* Network */,
9A2D56942743A0AB001B264F /* Resource */,
9A2D56952743A11A001B264F /* Home */,
9A2D56932743A085001B264F /* TabBar */,
Expand All @@ -115,6 +118,14 @@
path = DalTube;
sourceTree = "<group>";
};
9A193E1B27758B1100231077 /* Network */ = {
isa = PBXGroup;
children = (
9A193E1927758AB700231077 /* APIConstants.swift */,
);
path = Network;
sourceTree = "<group>";
};
9A2D56922743A030001B264F /* Login */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -168,7 +179,6 @@
053A7D81CDD0FABA5B56F7FD /* Pods-DalTube.debug.xcconfig */,
6647690D6A1F78395DBD5682 /* Pods-DalTube.release.xcconfig */,
);
name = Pods;
path = Pods;
sourceTree = "<group>";
};
Expand Down Expand Up @@ -291,6 +301,7 @@
files = (
9A04DCA52743E7BA0012658D /* HomeContentDataModel.swift in Sources */,
9A53B76A270A7D7800ECE343 /* LoginViewController.swift in Sources */,
9A193E1A27758AB700231077 /* APIConstants.swift in Sources */,
9A43F838272944A2002DC0D5 /* HomeVC.swift in Sources */,
9A04DCA22743E17F0012658D /* HomeTableViewCell.swift in Sources */,
9A43F82C27293CDD002DC0D5 /* CustomTabBarController.swift in Sources */,
Expand Down
Binary file not shown.
2 changes: 2 additions & 0 deletions DalTube/DalTube/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@
</view>
<navigationItem key="navigationItem" id="TVx-xC-dBs"/>
<connections>
<outlet property="emailTextField" destination="4e6-oT-lWr" id="og4-q1-HDS"/>
<outlet property="nameTextField" destination="lrL-Pw-wBU" id="Bcz-Sz-0Bi"/>
<outlet property="passwordTextField" destination="3ex-Ws-NHf" id="DZb-WV-CWf"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="PoG-pq-4jP" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
Expand Down
3 changes: 2 additions & 1 deletion DalTube/DalTube/Login/LoginViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import UIKit
class LoginViewController: UIViewController {

@IBOutlet weak var nameTextField: UITextField!

@IBOutlet weak var emailTextField: UITextField!
@IBOutlet weak var passwordTextField: UITextField!

override func viewDidLoad() {
super.viewDidLoad()
Expand Down
16 changes: 16 additions & 0 deletions DalTube/DalTube/Network/APIConstants.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// APIConstants.swift
// DalTube
//
// Created by 김선오 on 2021/12/24.
//

import Foundation

struct APIConstants {
//MARK: Base URL
static let baseURL = "https://asia-northeast3-we-sopt-29.cloudfunctions.net/api"

//MARK: Feature URL
static let loginURL = baseURL + "/user/login"
}

0 comments on commit e10a17c

Please sign in to comment.