run go fmt
This commit is contained in:
@@ -154,18 +154,18 @@ func New(config *config.Config, logger *logrus.Logger) (Router, error) {
|
||||
// serve static files from /assets
|
||||
// FIXME: why doesn't this config var work??
|
||||
// assetPath := filepath.Join(cwd, config.TemplateConfig.AssetBaseDir);
|
||||
engine.Static("/assets", "./web/assets");
|
||||
engine.Static("/assets", "./web/assets")
|
||||
|
||||
// FIXME: actual variables
|
||||
engine.GET("/", func(c *gin.Context) {
|
||||
c.HTML(http.StatusOK, "index.tmpl", gin.H{
|
||||
"instancename": "GoToSocial Test Instance",
|
||||
"countUsers": 3,
|
||||
"instancename": "GoToSocial Test Instance",
|
||||
"countUsers": 3,
|
||||
"countStatuses": 42069,
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.0",
|
||||
"adminUsername": "@admin",
|
||||
})
|
||||
});
|
||||
})
|
||||
|
||||
// create the actual http server here
|
||||
s := &http.Server{
|
||||
|
||||
Reference in New Issue
Block a user