Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
ykys-api-demo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Saliou
ykys-api-demo
Commits
698472bd
Commit
698472bd
authored
Mar 23, 2022
by
Saliou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test ci-cd
parent
4fd0361e
Pipeline
#29
passed with stage
in 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
rest.py
rest.py
+1
-3
No files found.
rest.py
View file @
698472bd
...
...
@@ -17,7 +17,6 @@ from dotenv import load_dotenv
project_folder
=
os
.
getcwd
()
load_dotenv
(
os
.
path
.
join
(
project_folder
,
'.env'
))
class
DecimalEncoder
(
json
.
JSONEncoder
):
def
default
(
self
,
o
):
if
isinstance
(
o
,
decimal
.
Decimal
):
...
...
@@ -47,9 +46,8 @@ def verify_token(token):
return
tokens
[
token
]
@
app
.
route
(
'/'
)
@
auth
.
login_required
def
index
():
return
"Hello, {}!"
.
format
(
auth
.
current_user
())
return
"Hello
from baamtu
, {}!"
.
format
(
auth
.
current_user
())
@
app
.
route
(
'/articles'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment