redundant

This commit is contained in:
Adam 2023-06-18 15:40:30 -04:00
parent f2876f2260
commit e8b67c199d

View file

@ -118,22 +118,22 @@ fake_db = [
];
@api.get('/dennis/home')
@api.get('/home')
async def serve_home():
return fake_db
@api.get('/dennis/blog')
@api.get('/blog')
async def serve_blog():
return [entry for entry in fake_db if entry.content_type == 'blog']
@api.get('/dennis/projects')
@api.get('/projects')
async def serve_projects():
return [entry for entry in fake_db if entry.content_type == 'project' or entry.content_type == 'game']
@api.get('/dennis/bots')
@api.get('/bots')
async def serve_bots():
return [entry for entry in fake_db if entry.content_type == 'chatbot']