This commit is contained in:
Gregory Salaun 2023-04-15 16:33:03 +07:00
parent bbed7f94f4
commit 4b8717f50a
5 changed files with 5 additions and 32 deletions

8
.idea/.gitignore generated vendored
View File

@ -1,8 +0,0 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

9
.idea/RaceBot.iml generated
View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="Go" enabled="true" />
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

8
.idea/modules.xml generated
View File

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/RaceBot.iml" filepath="$PROJECT_DIR$/.idea/RaceBot.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml generated
View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View File

@ -22,7 +22,11 @@ func (s *Server) Start() error {
r := gin.Default()
SetupRoutes(r)
fmt.Println("Server is running on port:", config.HTTPPort)
r.Run(":" + config.HTTPPort)
err := r.Run(":" + config.HTTPPort)
if err != nil {
return err
}
return nil
}
func SetupRoutes(app *gin.Engine) {