First commit
This commit is contained in:
13
server/frontend/app/blueprints/device.py
Normal file
13
server/frontend/app/blueprints/device.py
Normal file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from flask import jsonify, Blueprint
|
||||
from app.classes.device import Device
|
||||
|
||||
device_bp = Blueprint("device", __name__)
|
||||
|
||||
|
||||
@device_bp.route("/get/<token>", methods=["GET"])
|
||||
def api_device_get(token):
|
||||
""" Get device assets """
|
||||
return jsonify(Device(token).get())
|
Reference in New Issue
Block a user