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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
09143acf
authored
Apr 02, 2019
by
edems
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ImagesController added
parent
43f875c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
controllers/ImagesController.py
+29
-0
No files found.
controllers/ImagesController.py
0 → 100644
View file @
09143acf
from
aiohttp
import
web
class
ImagesController
:
@staticmethod
def
add_routes
(
app
):
app
.
add_routes
([
web
.
get
(
'/images'
,
ImagesController
.
list
),
web
.
post
(
'/images/upload'
,
ImagesController
.
upload
),
web
.
get
(
'/images/{image}'
,
ImagesController
.
get
),
web
.
delete
(
'/images/{image}/delete'
,
ImagesController
.
delete
)
])
@staticmethod
async
def
upload
(
request
):
return
web
.
Response
(
text
=
'Upload'
)
@staticmethod
async
def
list
(
request
):
return
web
.
Response
(
text
=
'List'
)
@staticmethod
async
def
get
(
request
):
return
web
.
Response
(
text
=
'Get'
)
@staticmethod
async
def
delete
(
request
):
return
web
.
Response
(
text
=
'Delete'
)
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