mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-19 23:26:15 -06:00
run go fmt
This commit is contained in:
parent
bcf9fe41c2
commit
965b515db4
5 changed files with 16 additions and 16 deletions
|
|
@ -154,7 +154,7 @@ func New(config *config.Config, logger *logrus.Logger) (Router, error) {
|
||||||
// serve static files from /assets
|
// serve static files from /assets
|
||||||
// FIXME: why doesn't this config var work??
|
// FIXME: why doesn't this config var work??
|
||||||
// assetPath := filepath.Join(cwd, config.TemplateConfig.AssetBaseDir);
|
// assetPath := filepath.Join(cwd, config.TemplateConfig.AssetBaseDir);
|
||||||
engine.Static("/assets", "./web/assets");
|
engine.Static("/assets", "./web/assets")
|
||||||
|
|
||||||
// FIXME: actual variables
|
// FIXME: actual variables
|
||||||
engine.GET("/", func(c *gin.Context) {
|
engine.GET("/", func(c *gin.Context) {
|
||||||
|
|
@ -165,7 +165,7 @@ func New(config *config.Config, logger *logrus.Logger) (Router, error) {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"adminUsername": "@admin",
|
"adminUsername": "@admin",
|
||||||
})
|
})
|
||||||
});
|
})
|
||||||
|
|
||||||
// create the actual http server here
|
// create the actual http server here
|
||||||
s := &http.Server{
|
s := &http.Server{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue