Created
June 26, 2018 20:02
-
-
Save Cibernomadas/1925c6e6087292f9c290af44581ded77 to your computer and use it in GitHub Desktop.
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
func NewServer() *gin.Engine { | |
RegisterSerializers() | |
srv := gin.Default() | |
srv.Use(ResisterDatabase()) | |
srv.Use(RegisterSession()) | |
srv.HTMLRender = TemplateRender() | |
return srv | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment