-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
29 lines (24 loc) · 735 Bytes
/
Copy pathmain.go
File metadata and controls
29 lines (24 loc) · 735 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
package main
import (
"github.com/leoncolt/conv/app"
_ "github.com/leoncolt/conv/common"
_ "github.com/leoncolt/conv/docs" // docs is generated by Swag CLI, you have to import it.
echoSwagger "github.com/swaggo/echo-swagger" // echo-swagger middleware
)
// @title Libre office convert API
// @version 1.0
// @description Api to convert file using libreoffice
// @host localhost:8080
// @BasePath /public
// @schemes http https
// @produce application/json
// @consumes application/json
// @securityDefinitions.apikey ApiKeyAuth
// @in header
// @name authorization
func main() {
application := app.New()
application.Engine.GET("/swagger/*", echoSwagger.WrapHandler)
application.Register()
application.Start()
}