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:52:49 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b4d84fbe22029293024b76e320c870ab860fb0d1
b4d84fbe
1 parent
9d95ad05
Update
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
api/config.go
api/main.go
api/config.go
View file @
b4d84fb
...
...
@@ -11,8 +11,9 @@ type Config struct {
}
type
ConfigServer
struct
{
LocalMode
bool
`json:"local_mode"`
Port
int
`json:"port"`
LocalMode
bool
`json:"local_mode"`
Host
string
`json:"host"`
Port
int
`json:"port"`
}
type
ConfigDatabase
struct
{
...
...
api/main.go
View file @
b4d84fb
...
...
@@ -71,7 +71,7 @@ func main() {
if
cfg
.
Server
.
LocalMode
{
handler
:=
cors
.
AllowAll
()
.
Handler
(
router
)
hs
:=
make
(
HostSwitch
)
hs
[
"icns.frec.kr:8080"
]
=
handler
hs
[
config
.
Server
.
Host
+
":"
+
config
.
Server
.
Port
]
// Start Server in Local Mode
log
.
Println
(
"[Local Mode] Starting HTTP API Server on port"
,
portStr
)
...
...
Please
register
or
login
to post a comment