Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
interface-openstack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
4
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
708d78a3
authored
Apr 02, 2019
by
edems
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get renamed to show
parent
c917ac5f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
controllers/ImagesController.py
+3
-3
controllers/SnapshotsController.py
+3
-3
controllers/StoragesController.py
+3
-3
No files found.
controllers/ImagesController.py
View file @
708d78a3
...
...
@@ -8,7 +8,7 @@ class ImagesController:
app
.
add_routes
([
web
.
get
(
'/images'
,
ImagesController
.
list
),
web
.
post
(
'/images/upload'
,
ImagesController
.
upload
),
web
.
get
(
'/images/{image}'
,
ImagesController
.
get
),
web
.
get
(
'/images/{image}'
,
ImagesController
.
show
),
web
.
delete
(
'/images/{image}/delete'
,
ImagesController
.
delete
)
])
...
...
@@ -21,8 +21,8 @@ class ImagesController:
return
web
.
Response
(
text
=
'List'
)
@staticmethod
async
def
get
(
request
):
return
web
.
Response
(
text
=
'
Get
'
)
async
def
show
(
request
):
return
web
.
Response
(
text
=
'
Show
'
)
@staticmethod
async
def
delete
(
request
):
...
...
controllers/SnapshotsController.py
View file @
708d78a3
...
...
@@ -8,7 +8,7 @@ class SnapshotsController:
app
.
add_routes
([
web
.
get
(
'/snapshots'
,
SnapshotsController
.
list
),
web
.
post
(
'/snapshots/create/{storage}'
,
SnapshotsController
.
create
),
web
.
get
(
'/snapshots/{snapshot}'
,
SnapshotsController
.
get
),
web
.
get
(
'/snapshots/{snapshot}'
,
SnapshotsController
.
show
),
web
.
delete
(
'/snapshots/{snapshot}/delete'
,
SnapshotsController
.
delete
)
])
...
...
@@ -21,8 +21,8 @@ class SnapshotsController:
return
web
.
Response
(
text
=
'List'
)
@staticmethod
async
def
get
(
request
):
return
web
.
Response
(
text
=
'
Get
'
)
async
def
show
(
request
):
return
web
.
Response
(
text
=
'
Show
'
)
@staticmethod
async
def
delete
(
request
):
...
...
controllers/StoragesController.py
View file @
708d78a3
...
...
@@ -8,7 +8,7 @@ class StoragesController:
app
.
add_routes
([
web
.
get
(
'/storages'
,
StoragesController
.
list
),
web
.
post
(
'/storages/create'
,
StoragesController
.
create
),
web
.
get
(
'/storages/{storage}'
,
StoragesController
.
get
),
web
.
get
(
'/storages/{storage}'
,
StoragesController
.
show
),
web
.
delete
(
'/storages/{storage}/delete'
,
StoragesController
.
delete
)
])
...
...
@@ -21,8 +21,8 @@ class StoragesController:
return
web
.
Response
(
text
=
'List'
)
@staticmethod
async
def
get
(
request
):
return
web
.
Response
(
text
=
'
Get
'
)
async
def
show
(
request
):
return
web
.
Response
(
text
=
'
Show
'
)
@staticmethod
async
def
delete
(
request
):
...
...
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