summaryrefslogtreecommitdiff
path: root/check/app/server/api.py
blob: 620e604df39c6bd13de92bb0abf2aa280a76fa80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import os
import re
import time
import numpy as np
from flask import Blueprint, request, jsonify
from PIL import Image

# from app.utils.im_utils import pil2np

sanitize_re = re.compile('[\W]+')
valid_exts = ['.gif', '.jpg', '.jpeg', '.png']

LIMIT = 9

api = Blueprint('api', __name__)

@api.route('/')
def index():
  """List the datasets and their fields"""
  return jsonify({ 'status': 'ok' })