设置静态目录
This commit is contained in:
parent
88fe343138
commit
c16de4bbaf
3
main.go
3
main.go
@ -42,6 +42,9 @@ func main() {
|
|||||||
// And the wildcard one for index.html, *.js, *.css and e.t.c.
|
// And the wildcard one for index.html, *.js, *.css and e.t.c.
|
||||||
app.Get("/swagger/{any:path}", swaggerUI)
|
app.Get("/swagger/{any:path}", swaggerUI)
|
||||||
|
|
||||||
|
// 将网站静态根目录设置为 ./public
|
||||||
|
app.HandleDir("/", "./public")
|
||||||
|
|
||||||
conf := config.LoadConfig()
|
conf := config.LoadConfig()
|
||||||
|
|
||||||
// init util
|
// init util
|
||||||
|
Loading…
Reference in New Issue
Block a user