Unverified Commit 23cc052e authored by Dan Jones's avatar Dan Jones
Browse files

fix: correct endpoint imports

parent 92db11ce
...@@ -98,9 +98,9 @@ clients_file = ClientsFile() ...@@ -98,9 +98,9 @@ clients_file = ClientsFile()
# Client # Client
class Client(Resource): class Client(Resource):
@marshal_with(resource_fields)
def get(self, client_id): def get(self, client_id):
client = clients_file.find(client_id) client = clients_file.find(client_id)
del client['secret']
if not client: if not client:
abort(404, message="No client with id: {}".format(client_id)) abort(404, message="No client with id: {}".format(client_id))
return client return client
......
from flask_restful import Resource, reqparse, abort, fields, marshal_with from flask_restful import Resource, reqparse, abort
from marshmallow import Schema, field from marshmallow import Schema, fields
import json import json
class NotifySchema(Schema): class NotifySchema(Schema):
......
from flask_restful import Resource, request, abort, fields from flask_restful import Resource, request, abort
from marshmallow import Schema, fields from marshmallow import Schema, fields
import pika import pika
import json import json
......
from flask_restful import Resource, reqparse, abort, fields, marshal_with from flask_restful import Resource, reqparse, abort
from marshmallow import Schema, field from marshmallow import Schema, fields
import json import json
class SendSchema(Schema): class SendSchema(Schema):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment