diff --git a/backend.py b/backend.py index 9e493b8..987c277 100644 --- a/backend.py +++ b/backend.py @@ -107,13 +107,6 @@ WHERE events_id=%s;""", (id,)) resp.body = """{"id":"%s"}""" % (e[0]) resp.status = falcon.HTTP_201 -class StaticResource(object): - def on_get(self, req, resp): - resp.status = falcon.HTTP_200 - resp.content_type = 'text/html' - with codecs.open('editor/index.html', 'r', 'utf-8') as f: - resp.body = f.read() - # falcon.API instances are callable WSGI apps app = falcon.API() @@ -121,11 +114,9 @@ app = falcon.API() events = EventsResource() event = EventResource() stats = StatsResource() -editor = StaticResource() # things will handle all requests to the matching URL path app.add_route('/events', events) app.add_route('/event/{id}', event) # handle single event requests app.add_route('/event', event) # handle single event requests app.add_route('/stats', stats) -app.add_route('/editor', editor) diff --git a/editor/event-schema.json b/editor/event-schema.json deleted file mode 100644 index f93009c..0000000 --- a/editor/event-schema.json +++ /dev/null @@ -1,17 +0,0 @@ - -{ - "title": "Evenement", - "type": "object", - "id": "event", - "properties": { - "what" : { - "type":"string", - "title":"Libellé de l'événement" - }, - "when" : { - "title":"Date et heure de début", - "type" : "string", - "format" : "datetime-local" - } - } -} diff --git a/editor/index.html b/editor/index.html deleted file mode 100644 index 9c2bd6f..0000000 --- a/editor/index.html +++ /dev/null @@ -1,167 +0,0 @@ - - - - - Détail d'un événement - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
-

Events

-
-
-
-
-
- -
- - - - - - \ No newline at end of file