This commit is contained in:
parent
6756056a5b
commit
dc825dd2aa
20
main.go
20
main.go
|
|
@ -1,19 +1,19 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"license-server/license"
|
||||
"license-server/storage"
|
||||
"license-server/license"
|
||||
"license-server/storage"
|
||||
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
db := storage.InitDB()
|
||||
app := fiber.New()
|
||||
db := storage.InitDB()
|
||||
app := fiber.New()
|
||||
|
||||
app.Post("/api/license/generate", license.GenerateLicenseHandler(db))
|
||||
app.Post("/api/license/activate", license.ActivateLicenseHandler(db))
|
||||
app.Post("/api/license/validate", license.ValidateLicenseHandler(db))
|
||||
app.Post("/api/license/generate", license.GenerateLicenseHandler(db))
|
||||
app.Post("/api/license/activate", license.ActivateLicenseHandler(db))
|
||||
app.Post("/api/license/validate", license.ValidateLicenseHandler(db))
|
||||
|
||||
app.Listen(":13579")
|
||||
app.Listen("127.0.0.1:13579")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue