token required
This commit is contained in:
3
main.go
3
main.go
@@ -12,7 +12,8 @@ import (
|
|||||||
func main() {
|
func main() {
|
||||||
token := os.Getenv("API_TOKEN")
|
token := os.Getenv("API_TOKEN")
|
||||||
if token == "" {
|
if token == "" {
|
||||||
token = "ckynqopsk0002zp6ehp2n6d5n"
|
log.Fatal("API_TOKEN is required")
|
||||||
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
app := fiber.New()
|
app := fiber.New()
|
||||||
app.Use(logger.New(logger.Config{
|
app.Use(logger.New(logger.Config{
|
||||||
|
|||||||
Reference in New Issue
Block a user