-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from Geode-solutions/feat/ping_route
Feat/ping route
- Loading branch information
Showing
10 changed files
with
282 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Standard library imports | ||
import os | ||
import time | ||
|
||
# Third party imports | ||
# Local application imports | ||
|
||
|
||
class Config(object): | ||
FLASK_DEBUG = os.environ.get("FLASK_DEBUG", default=False) | ||
DEFAULT_PORT = "5000" | ||
CORS_HEADERS = "Content-Type" | ||
UPLOAD_FOLDER = "./uploads" | ||
DESKTOP_APP = False | ||
REQUEST_COUNTER = 0 | ||
LAST_REQUEST_TIME = time.time() | ||
LAST_PING_TIME = time.time() | ||
|
||
|
||
class ProdConfig(Config): | ||
SSL = None | ||
ORIGINS = "" | ||
MINUTES_BEFORE_TIMEOUT = "1" | ||
SECONDS_BETWEEN_SHUTDOWNS = "10" | ||
DATA_FOLDER_PATH = "/data/" | ||
|
||
|
||
class DevConfig(Config): | ||
SSL = None | ||
ORIGINS = "*" | ||
MINUTES_BEFORE_TIMEOUT = "1" | ||
SECONDS_BETWEEN_SHUTDOWNS = "10" | ||
DATA_FOLDER_PATH = "./data/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"route": "/ping", | ||
"methods": [ | ||
"POST" | ||
], | ||
"type": "object", | ||
"properties": {}, | ||
"required": [], | ||
"additionalProperties": false | ||
} |
Oops, something went wrong.