forked from ahaodev/shadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
32 lines (26 loc) · 759 Bytes
/
main.go
File metadata and controls
32 lines (26 loc) · 759 Bytes
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
package main
import (
"shadmin/cmd"
_ "shadmin/docs" // Import generated docs
)
// @title ShadMIN API
// @version 1.0
// @description admin dashboard system with RBAC
// @termsOfService http://swagger.io/terms/
// @contact.name API Support
// @contact.url http://www.swagger.io/support
// @contact.email support@swagger.io
// @license.name MIT
// @license.url https://opensource.org/licenses/MIT
// @host localhost:55667
// @BasePath /api/v1
// @securityDefinitions.apikey BearerAuth
// @in header
// @name Authorization
// @description Type "Bearer" followed by a space and JWT token.
//
//go:generate swag init
//go:generate go run -mod=mod entgo.io/ent/cmd/ent generate ./ent/schema
func main() {
cmd.Run()
}