-
-
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.
* Make user not required for auth middleware, have route fail if needed * Add new videos route * Add function for getting videos by video id or user id * Remove unecessary comment * Add queue debug statement for tracer * Have uploads route use the config for upload dir * Fix path conversion for upload dir * Update pattern for decoding claims * Add username as query * Add video privacy status column * Add by_username for video get * Remove fetch user by user id * Add logic for fetching videos by video id and username * Added client-side videos page and watch page * Update vod library to properly handle multi-quality uploads * Remove random info statement * Add `all` function for videos * Update videos routes to be able to stream video
- Loading branch information
1 parent
033a3fb
commit 8947919
Showing
24 changed files
with
944 additions
and
166 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ target/ | |
.env* | ||
!.env.example | ||
uploads/ | ||
videos/ | ||
/videos |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,6 @@ | ||
-- Remove the privacy_status column from videos table | ||
ALTER TABLE videos | ||
DROP COLUMN privacy_status; | ||
|
||
-- Remove the privacy_status enum type | ||
DROP TYPE privacy_status; |
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,6 @@ | ||
-- Create enum type for privacy status | ||
CREATE TYPE privacy_status AS ENUM ('private', 'public'); | ||
|
||
-- Add privacy_status column to videos table with default value of 'public' | ||
ALTER TABLE videos | ||
ADD COLUMN privacy_status privacy_status NOT NULL DEFAULT 'public'; |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ edition = "2021" | |
|
||
[dependencies] | ||
anyhow = "1.0" | ||
tracing = "0.1" |
Oops, something went wrong.