mirror of
https://github.com/Dasemu/skipredictor.git
synced 2026-11-26 15:26:15 +00:00
feat(api): add FastAPI backend with JWT authentication
REST API serving forecast data with HS256 JWT auth (14-day tokens).
Public: /health, /auth/register, /auth/login.
Protected: /stations, /forecast, /forecast/history, /forecast/{id}, /status.
Includes APScheduler for periodic forecasts and Telegram bot subprocess.
This commit is contained in:
1 parent
c8188e3995
commit
9d97afe538
14 files changed
+1631
-10
No files matched your search
@@ -3,15 +3,18 @@
|
||||
from storage.sqlite_store import (
|
||||
AD_HOC_RUN_KIND,
|
||||
CROWD_ANALYSIS_TABLE,
|
||||
CURRENT_FORECASTS_TABLE,
|
||||
DEFAULT_DB_PATH,
|
||||
EVALUATION_RUNS_TABLE,
|
||||
FEATURE_IMPORTANCE_TABLE,
|
||||
HISTORICAL_ACTUALS_TABLE,
|
||||
HISTORICAL_FEATURED_TABLE,
|
||||
HISTORICAL_MERGED_TABLE,
|
||||
HISTORICAL_STATION_TABLE,
|
||||
HISTORICAL_WEATHER_TABLE,
|
||||
LATEST_STATION_STATUS_TABLE,
|
||||
LATEST_WEATHER_TABLE,
|
||||
PAST_FORECASTS_TABLE,
|
||||
PUBLISHED_RUN_KIND,
|
||||
RUNTIME_DATASET_TABLE,
|
||||
RUNTIME_FEATURED_TABLE,
|
||||
@@ -21,15 +24,18 @@ from storage.sqlite_store import (
|
||||
__all__ = [
|
||||
"AD_HOC_RUN_KIND",
|
||||
"CROWD_ANALYSIS_TABLE",
|
||||
"CURRENT_FORECASTS_TABLE",
|
||||
"DEFAULT_DB_PATH",
|
||||
"EVALUATION_RUNS_TABLE",
|
||||
"FEATURE_IMPORTANCE_TABLE",
|
||||
"HISTORICAL_ACTUALS_TABLE",
|
||||
"HISTORICAL_FEATURED_TABLE",
|
||||
"HISTORICAL_MERGED_TABLE",
|
||||
"HISTORICAL_STATION_TABLE",
|
||||
"HISTORICAL_WEATHER_TABLE",
|
||||
"LATEST_STATION_STATUS_TABLE",
|
||||
"LATEST_WEATHER_TABLE",
|
||||
"PAST_FORECASTS_TABLE",
|
||||
"PUBLISHED_RUN_KIND",
|
||||
"RUNTIME_DATASET_TABLE",
|
||||
"RUNTIME_FEATURED_TABLE",
|
||||
|
||||
Reference in new issue
Block a user