duck-booking-tool/controllers/default_controller.py

16 lines
296 B
Python
Raw Normal View History

2016-10-28 09:51:54 +00:00
from flask import Flask, request
from flask_restful import Resource, Api
from models import Duck
#app =
def ducks_get():
2016-10-27 18:18:02 +00:00
return 'do some magic!'
2016-10-28 01:55:36 +00:00
2016-10-28 09:51:54 +00:00
def duck_get( duck_id ):
2016-10-28 01:55:36 +00:00
return 'do some duck magic!'
2016-10-28 09:51:54 +00:00
def duck_post( name, color ):
new_duck = Duck( name, color )
return new_duck