diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-04-18 15:34:37 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-04-18 15:34:37 +0530 |
commit | 93dd72920e5a72c684f53071f4ab1972bf1e878c (patch) | |
tree | a9d32a0ff8a8237003caa7fbb4dd00908a669978 /server/main.go | |
parent | dafb3638bbd1184f15ad9b7637178ea6ce510d90 (diff) |
created a server to just serve the static app
Diffstat (limited to 'server/main.go')
-rw-r--r-- | server/main.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/server/main.go b/server/main.go new file mode 100644 index 0000000..b0d3f9d --- /dev/null +++ b/server/main.go @@ -0,0 +1,15 @@ +package main + +import ( + "github.com/gin-gonic/gin" + // "net/http" +) + +func main() { + myRouter := gin.New() + // myRouter.Use(gin.Logger()) + + myRouter.Static("/app", "./app") + + myRouter.Run(":8080") +} |