Skip to content

Commit

Permalink
chore: revert back to .txt
Browse files Browse the repository at this point in the history
  • Loading branch information
namn-grg committed Jun 21, 2024
1 parent 991cf72 commit 2b90065
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ peerstore.db
*.parquet
*.sqlite
*.sqlite-journal
api_keys.env
api_keys.txt
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Admin access (requires an API key):
curl -H "X-API-KEY: <API-KEY>" http://localhost:8080/validators
```

API keys can be added in the `api_keys.env` file.
API keys can be added in the `api_keys.txt` file.

## Credits

Expand Down
3 changes: 0 additions & 3 deletions api_keys.env.example

This file was deleted.

2 changes: 1 addition & 1 deletion consumer/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func createGetValidatorsHandler(db *sql.DB) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
apiKey := r.Header.Get("X-API-Key")

isAdmin, _ := loadAPIKeys("api_keys.env", apiKey)
isAdmin, _ := loadAPIKeys("api_keys.txt", apiKey)

rows, err := db.Query(selectQuery)
if err != nil {
Expand Down

0 comments on commit 2b90065

Please sign in to comment.