53f37ff619
- Improved API endpoints logic - Use gorilla sessions for more granularity
20 lines
270 B
Go
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()
|
|
}
|