コード例 #1
0
ファイル: main.py プロジェクト: pznkDev/Releaser
from app.utils import Route
from app.views.main import index

index_routes = [
    Route(
        name='index',
        method='GET',
        path='/',
        handler=index
    )
]
コード例 #2
0
ファイル: account.py プロジェクト: pznkDev/Releaser
from app.utils import Route
from app.views import account

routes = [
    Route(
        name='get_all_accounts',
        method='GET',
        path='/',
        handler=account.get_all_accounts
    ),
    Route(
        name='get_one_account',
        method='GET',
        path=r'/{account_id:\d+}/',
        handler=account.get_one_account
    ),
    Route(
        name='create_account',
        method='POST',
        path=r'/',
        handler=account.create_account
    ),
    Route(
        name='update_account',
        method='PUT',
        path=r'/{account_id:\d+}/',
        handler=account.update_account
    ),
    Route(
        name='delete_account',
        method='DELETE',
コード例 #3
0
from app.views import release
from app.utils import Route

routes = [
    Route(name='get_one_release',
          method='GET',
          path=r'/',
          handler=release.get_last_release),
    Route(name='create_release',
          method='POST',
          path=r'/',
          handler=release.create_release)
]
コード例 #4
0
from app.views import bug
from app.utils import Route

routes = [
    Route(name='get_all_bugs',
          method='GET',
          path='/',
          handler=bug.get_all_bugs),
    Route(name='get_one_bug',
          method='GET',
          path=r'/{bug_id:\d+}/',
          handler=bug.get_one_bug),
    Route(name='create_bug', method='POST', path=r'/', handler=bug.create_bug),
    Route(name='update_bug',
          method='PUT',
          path=r'/{bug_id:\d+}/',
          handler=bug.update_bug),
    Route(name='delete_bug',
          method='DELETE',
          path=r'/{bug_id:\d+}/',
          handler=bug.delete_bug)
]
コード例 #5
0
from app.views import team
from app.utils import Route

routes = [
    Route(name='get_all_teams',
          method='GET',
          path='/',
          handler=team.get_all_teams)
]
コード例 #6
0
from app.utils import Route
from app.views import team_release_status

routes = [
    Route(name='get_all_release_team_status',
          method='GET',
          path='/',
          handler=team_release_status.get_all_release_team_status),
    Route(name='update_team_release_status',
          method='PUT',
          path=r'/',
          handler=team_release_status.update_release_team_status)
]
コード例 #7
0
ファイル: other.py プロジェクト: pznkDev/Releaser
from app.utils import Route
from app.views.main import index

routes = [
    Route(name='other', method='GET', path='/{tail:.*}', handler=index),
]
コード例 #8
0
ファイル: auth.py プロジェクト: pznkDev/Releaser
from app.views import auth

from app.utils import Route

routes = [
    Route(name='signin', method='POST', path='/signin/', handler=auth.signin),
    Route(name='signout',
          method='POST',
          path='/signout/',
          handler=auth.signout)
]
コード例 #9
0
from app.views import bug_history
from app.utils import Route

routes = [
    Route(name='get_all_bug_history',
          method='GET',
          path='/',
          handler=bug_history.get_all_bugs),
    Route(name='get_all_bugs_stat',
          method='GET',
          path='/stat/',
          handler=bug_history.get_all_bugs_stat),
    Route(name='get_one_bug_history',
          method='GET',
          path=r'/{bug_id:\d+}/',
          handler=bug_history.get_one_bug),
    Route(name='create_bug_history',
          method='POST',
          path=r'/',
          handler=bug_history.create_bug),
    Route(name='update_bug_history',
          method='PUT',
          path=r'/{bug_id:\d+}/',
          handler=bug_history.update_bug),
    Route(name='delete_bug_history',
          method='DELETE',
          path=r'/{bug_id:\d+}/',
          handler=bug_history.delete_bug)
]