forked from NdoleStudio/httpsms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
34 lines (30 loc) · 818 Bytes
/
main.go
File metadata and controls
34 lines (30 loc) · 818 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
33
34
package main
import (
"os"
_ "github.com/NdoleStudio/httpsms/docs"
"github.com/NdoleStudio/httpsms/pkg/di"
)
// @title HTTP SMS API
// @version 1.0
// @description API to send SMS messages using android [SmsManager](https://developer.android.com/reference/android/telephony/SmsManager) via HTTP
//
// @contact.name HTTP SMS Support
// @contact.email supportd@httpsms.com
//
// @license.name MIT
// @license.url https://raw.githubusercontent.com/NdoleStudio/http-sms-manager/main/LICENSE
//
// @host api.httpsms.com
// @schemes https
// @BasePath /v1
//
// @securitydefinitions.apikey ApiKeyAuth
// @in header
// @name x-api-Key
func main() {
if len(os.Args) == 1 {
di.LoadEnv()
}
container := di.NewContainer("http-sms")
container.Logger().Info(container.App().Listen(":8000").Error())
}