mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-25 23:17:34 -04:00
add license, move folders
This commit is contained in:
parent
185cc74060
commit
271c4a46a1
132 changed files with 21 additions and 0 deletions
32
app/scripts/resources/api_settings.gd
Normal file
32
app/scripts/resources/api_settings.gd
Normal file
|
@ -0,0 +1,32 @@
|
|||
extends Resource
|
||||
class_name ApiSettings
|
||||
|
||||
enum HostType {
|
||||
Local,
|
||||
Remote
|
||||
}
|
||||
|
||||
@export var local_url: String
|
||||
@export var remote_url: String
|
||||
@export var host_type: HostType
|
||||
|
||||
var url: String :
|
||||
get: return local_url if host_type == HostType.Local else remote_url
|
||||
|
||||
var analytics_event: String :
|
||||
get: return url + "/api/analytics_event"
|
||||
|
||||
var create_user_id: String :
|
||||
get: return url + "/api/create_user_id"
|
||||
|
||||
var discover_gate: String :
|
||||
get: return url + "/api/discover_gate"
|
||||
|
||||
var featured_gates: String :
|
||||
get: return url + "/api/featured_gates"
|
||||
|
||||
var search: String :
|
||||
get: return url + "/api/search?query="
|
||||
|
||||
var prompt: String :
|
||||
get: return url + "/api/prompt?query="
|
Loading…
Add table
Add a link
Reference in a new issue