mirror of https://github.com/zhufuyi/sponge
27 lines
621 B
Go
27 lines
621 B
Go
// Package main is the http server of the application.
|
|
package main
|
|
|
|
import (
|
|
"github.com/go-dev-frame/sponge/pkg/app"
|
|
|
|
"github.com/go-dev-frame/sponge/cmd/serverNameExample_httpExample/initial"
|
|
)
|
|
|
|
// @title serverNameExample api docs
|
|
// @description http server api docs
|
|
// @schemes http https
|
|
// @version v1.0.0
|
|
// @host localhost:8080
|
|
// @securityDefinitions.apikey BearerAuth
|
|
// @in header
|
|
// @name Authorization
|
|
// @description Type Bearer your-jwt-token to Value
|
|
func main() {
|
|
initial.InitApp()
|
|
services := initial.CreateServices()
|
|
closes := initial.Close(services)
|
|
|
|
a := app.New(services, closes)
|
|
a.Run()
|
|
}
|