Added File Storage server to Atract Server
This commit is contained in:
@@ -14,6 +14,7 @@ from bson import ObjectId
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
|
from file_server import file_server
|
||||||
|
|
||||||
RFC1123_DATE_FORMAT = '%a, %d %b %Y %H:%M:%S GMT'
|
RFC1123_DATE_FORMAT = '%a, %d %b %Y %H:%M:%S GMT'
|
||||||
|
|
||||||
@@ -183,3 +184,4 @@ def post_item(entry, data):
|
|||||||
|
|
||||||
|
|
||||||
app = Eve(validator=ValidateCustomFields, auth=CustomTokenAuth)
|
app = Eve(validator=ValidateCustomFields, auth=CustomTokenAuth)
|
||||||
|
app.register_blueprint(file_server, url_prefix='/file_server')
|
||||||
|
@@ -160,7 +160,7 @@ files_schema = {
|
|||||||
'backend': {
|
'backend': {
|
||||||
'type': 'string',
|
'type': 'string',
|
||||||
'required': True,
|
'required': True,
|
||||||
'allowed': ["fs.files", "attract-web"]
|
'allowed': ["fs.files", "attract-web", "attract"]
|
||||||
},
|
},
|
||||||
#'thumbnail': {
|
#'thumbnail': {
|
||||||
# 'type': 'string',
|
# 'type': 'string',
|
||||||
|
Reference in New Issue
Block a user