def api(file): if file == 'all': return all elif file == 'now': return now else: return make_response('404 Not Found', 404)