Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
easybistro-api-docker
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sasit Wiratjinda
easybistro-api-docker
Commits
4f85411e
Commit
4f85411e
authored
Nov 23, 2022
by
Ai-Sasit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test update
parent
1d71b145
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
core.py
server/core.py
+4
-0
No files found.
server/core.py
View file @
4f85411e
...
@@ -29,6 +29,10 @@ app.add_middleware(
...
@@ -29,6 +29,10 @@ app.add_middleware(
@app.get
(
"/"
)
@app.get
(
"/"
)
def
read_root
():
def
read_root
():
return
{
"Project"
:
"Easy Bistro"
,
"Framework"
:
"Fast API"
,
"Interpreter"
:
"Python"
,
'API Version'
:
version
}
return
{
"Project"
:
"Easy Bistro"
,
"Framework"
:
"Fast API"
,
"Interpreter"
:
"Python"
,
'API Version'
:
version
}
@app.get
(
"/test"
)
def
read_root
():
return
{
"Project"
:
"Easy Bistro"
,
"Framework"
:
"Fast API"
,
"Interpreter"
:
"Python"
,
'API Version'
:
version
}
app
.
include_router
(
scb
,
prefix
=
"/v1"
,
tags
=
[
"SCB API"
])
app
.
include_router
(
scb
,
prefix
=
"/v1"
,
tags
=
[
"SCB API"
])
...
...
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