Alle Dateien aus dem Pythonkurs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 lines
441 B

import falcon, json
import logging
from datetime import datetime
class Message:
def __init__(self,user, text):
self.user = user
self.text = text
self.created = datetime.now()
class ChatServert(object):
def __init__(self):
self.lastmessage = 'Chat Server bereit.')
def on_get(self,req,resp):
pass
def on_post(self,req,resp):
pass
def on_delete(self,req,resp):