Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김명현
/
Classroom-Reservation
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
freckie
2020-12-18 19:55:01 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0bfe6e5fa02f5f094624d8820372fa54b577645b
0bfe6e5f
1 parent
c649b3a5
Update
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
api/main.go
api/main.go
View file @
0bfe6e5
...
...
@@ -71,7 +71,8 @@ func main() {
if
cfg
.
Server
.
LocalMode
{
handler
:=
cors
.
AllowAll
()
.
Handler
(
router
)
hs
:=
make
(
HostSwitch
)
hs
[
cfg
.
Server
.
Host
+
":"
+
cfg
.
Server
.
Port
]
hostname
:=
fmt
.
Sprintf
(
"%s:%d"
,
cfg
.
Server
.
Host
,
cfg
.
Server
.
Port
)
hs
[
hostname
]
=
handler
// Start Server in Local Mode
log
.
Println
(
"[Local Mode] Starting HTTP API Server on port"
,
portStr
)
...
...
Please
register
or
login
to post a comment