-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
33 lines (27 loc) · 948 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package main
import (
"os"
"github.com/OdairPianta/gryphon_api/docs"
"github.com/OdairPianta/gryphon_api/models"
"github.com/OdairPianta/gryphon_api/routes"
)
// swagger embed files
// @contact.name API Support
// @contact.url https://spotec.app/contato/
// @contact.email [email protected]
// @securityDefinitions.apikey Bearer
// @in header
// @name Authorization
// @description Type "Bearer" followed by a space and JWT token.
// @externalDocs.description OpenAPI
// @externalDocs.url https://swagger.io/resources/open-api/
func main() {
models.InitApp()
docs.SwaggerInfo.Title = "Gryphon API"
docs.SwaggerInfo.Description = "Gryphon API is a REST API that allows send files and manage files."
docs.SwaggerInfo.Version = "1.1.2"
docs.SwaggerInfo.Host = os.Getenv("APP_HOST") + ":" + os.Getenv("APP_PORT")
docs.SwaggerInfo.BasePath = "/api"
docs.SwaggerInfo.Schemes = []string{"http"}
routes.HandleRequest()
}