-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
강보원
authored and
강보원
committed
Jan 16, 2025
1 parent
02e992b
commit db17fa2
Showing
3 changed files
with
50 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,25 @@ | ||
// hi/korcen-api/main.go | ||
// korcen-api/main.go | ||
|
||
package main | ||
|
||
import ( | ||
"fmt" | ||
"log" | ||
"os" | ||
|
||
_ "github.com/fluffy-melli/korcen-api/docs" | ||
"github.com/fluffy-melli/korcen-api/internal/router" | ||
swaggerFiles "github.com/swaggo/files" | ||
ginSwagger "github.com/swaggo/gin-swagger" | ||
) | ||
|
||
func main() { | ||
fmt.Println("Korcen API Server Start") | ||
|
||
setup := router.SetupRouter() | ||
setup.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler)) | ||
setup.Run(":7777") | ||
if err := setup.Run(":7777"); err != nil { | ||
log.Println("Failed to start server:", err) | ||
os.Exit(1) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters