Skip to content

Commit

Permalink
move API_URL to Ipapi module
Browse files Browse the repository at this point in the history
  • Loading branch information
mamantoha committed Apr 5, 2024
1 parent 3931a7d commit dbc6059
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ipapi.cr
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ require "json"
module Ipapi
VERSION = {{ `shards version #{__DIR__}`.chomp.stringify }}

API_URL = "https://ipapi.co/"

FIELDS = {
"ip" => "public (external) IP address (same as URL `ip`)",
"city" => "city name",
Expand All @@ -30,8 +32,6 @@ module Ipapi
}

class Client
API_URL = "https://ipapi.co/"

def initialize(@api_key : String? = nil)
end

Expand Down

0 comments on commit dbc6059

Please sign in to comment.