Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
trenddit-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Raj Singh Gogia
trenddit-backend
Merge requests
!1
Setup flask
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Setup flask
subreddit-route-initializer
into
main
Overview
1
Commits
1
Pipelines
0
Changes
5
Merged
Raj Singh Gogia
requested to merge
subreddit-route-initializer
into
main
2 years ago
Overview
1
Commits
1
Pipelines
0
Changes
5
Expand
Created by: waraich1
Setup Subreddit route folder
Create Application.py
To initialize, see README.md
To run, just type sh run.sh in terminal
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
8e8f363c
1 commit,
1 year ago
5 files
+
71
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
api/subreddit.py
0 → 100644
+
20
−
0
Options
from
crypt
import
methods
import
imp
import
logging
import
json
import
os
from
urllib
import
response
from
flask
import
request
,
jsonify
,
Blueprint
subreddit_routes
=
Blueprint
(
'
subreddit
'
,
__name__
)
@subreddit_routes.route
(
"
/subreddit_posts
"
,
methods
=
[
'
GET
'
])
def
subreddit_get
():
response
=
jsonify
(
authError
=
True
,
data
=
{
'
data
'
:
'
This works
'
}
)
return
response
\ No newline at end of file
Loading