-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GPTUBE-68 Create endpoint for retrieving AI analysis results for a vi…
…deo (#69) * feat: adding initial skeleton for the handler function * refactor: refactoring the database package * feat: modifying internal database models for better structuring * documentation: modified documentation for new generated models * feat: finishing the implementation of the endpoint * documentation: updating API documentation for the new endpoint and new errors body
- Loading branch information
Showing
24 changed files
with
1,220 additions
and
386 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 |
---|---|---|
@@ -1 +1,22 @@ | ||
package database | ||
|
||
import ( | ||
"context" | ||
"fmt" | ||
"gptube/config" | ||
|
||
"google.golang.org/api/option" | ||
) | ||
|
||
var Ctx context.Context | ||
var Sa option.ClientOption | ||
|
||
func init() { | ||
Ctx = context.Background() | ||
fmt.Printf("Firebase setup in %s mode.\n", config.Config("ENV_MODE")) | ||
if config.Config("ENV_MODE") == "development" { | ||
Sa = option.WithCredentialsJSON([]byte(config.Config("DB_KEYS_DEVELOPMENT"))) | ||
} else { | ||
Sa = option.WithCredentialsJSON([]byte(config.Config("DB_KEYS_PRODUCTION"))) | ||
} | ||
} |
Oops, something went wrong.
b46a128
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
gptube-subscriptions – ./subscriptions-server
gptube-subscriptions-luckly083-gmailcom.vercel.app
gptube-subscriptions.vercel.app
gptube-subscriptions-git-main-luckly083-gmailcom.vercel.app