refactor: add data directory to gitignore
also fix allowed origins
This commit is contained in:
parent
d36662bd40
commit
fea1c9ced9
2 changed files with 2 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,2 +1,2 @@
|
||||||
.env
|
.env
|
||||||
data.json
|
data/
|
||||||
|
|
@ -16,7 +16,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func getAllowedOrigins() []string {
|
func getAllowedOrigins() []string {
|
||||||
allowedOrigins := []string{"https://trafficlunar.net", "https://trafficlunar.nekoweb.org/"}
|
allowedOrigins := []string{"https://trafficlunar.net", "https://trafficlunar.nekoweb.org"}
|
||||||
|
|
||||||
if os.Getenv("DEVELOPMENT_MODE") == "true" {
|
if os.Getenv("DEVELOPMENT_MODE") == "true" {
|
||||||
allowedOrigins = append(allowedOrigins, "http://localhost:4321")
|
allowedOrigins = append(allowedOrigins, "http://localhost:4321")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue