Skip to content

Commit 8d04e53

Browse files
committed
Added nameko service with http entry point.
1 parent 7a3b533 commit 8d04e53

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

examples/nameko_sqlalchemy/service.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env python
2+
from nameko.web.handlers import http
3+
from app import App
4+
5+
6+
class DepartmentService:
7+
name = 'department'
8+
9+
@http('POST', '/graphql')
10+
def query(self, request):
11+
return App().query(request)

0 commit comments

Comments
 (0)