bit4sat/main.go
Chakib Benziane 53f37ff619 Better session handling, wip download invoice
- Improved API endpoints logic
- Use gorilla sessions for more granularity
2019-04-06 03:45:50 +02:00

20 lines
270 B
Go

package main
import (
"git.sp4ke.com/sp4ke/bit4sat/api"
"git.sp4ke.com/sp4ke/bit4sat/db"
"git.sp4ke.com/sp4ke/bit4sat/watchers"
)
func main() {
go watchers.WatchInvoice()
defer db.DB.Sql.Close()
v1 := api.NewAPI()
defer api.SessionStore.Close()
v1.Run()
}