Beispiel #1
0
from saylua.routing import url
from . import views

urlpatterns = [
    url('/museum/', view_func=views.museum_main, name="museum"),

    # Books
    url('/shelf/', view_func=views.book_shelf, name="books_shelf"),
    url('/read/<int:book_id>/', view_func=views.book_read, name="books_read")
]
Beispiel #2
0
from saylua.routing import url
from . import views

urlpatterns = [url('/search/', view_func=views.site_search, name="search")]
Beispiel #3
0
from saylua.routing import url
from . import views

urlpatterns = [
    # Admin URLs
    url('/admin/items/add/',
        view_func=views.admin.admin_panel_items_add,
        name='admin_add',
        methods=['GET', 'POST']),
    url('/admin/items/edit/',
        view_func=views.admin.admin_panel_items_edit,
        name='admin_edit'),

    # Primary URLs
    url('/inventory/<category>/',
        view_func=views.items.items_inventory,
        name='inventory'),
    url('/inventory/', view_func=views.items.items_inventory,
        name='inventory'),
    url('/items/', view_func=views.items.items_view_all, name='view_all'),
    url('/item/<canon_name>/',
        view_func=views.items.items_view_single,
        name='view_single'),

    # Item APIS
    url('/api/inventory/<int:category_id>/<int:page>/',
        view_func=views.api.api_inventory,
        name='api_inventory'),
    url('/autosale/',
        view_func=views.actions.autosale,
        name='autosale',
Beispiel #4
0
from saylua.routing import url
from . import admin_views
from . import views

urlpatterns = [
    # Admin Views
    url('/admin/forums/boards/',
        view_func=admin_views.manage_boards,
        name='admin_boards',
        methods=['GET', 'POST']),
    url('/admin/forums/boards/<canon_name>/',
        view_func=admin_views.edit_board,
        name='admin_board_edit',
        methods=['GET', 'POST']),
    url('/admin/forums/categories/',
        view_func=admin_views.manage_categories,
        name='admin_categories',
        methods=['GET', 'POST']),
    url('/admin/forums/categories/<canon_name>/',
        view_func=admin_views.edit_category,
        name='admin_category_edit',
        methods=['GET', 'POST']),

    # Primary Views
    url('/forums/', view_func=views.forums_home, name='home'),
    url('/forums/board/<canon_name>/',
        view_func=views.forums_board,
        name='board',
        methods=['GET', 'POST']),

    # Stuff you can do while viewing a forum thread.
Beispiel #5
0
from saylua.routing import url
from . import views

urlpatterns = [
    # Login URLs
    url('/login/', view_func=views.login.login, name='login', methods=['GET', 'POST']),
    url('/login/recover/', view_func=views.recover.recover_login, name='login_recover',
        methods=['GET', 'POST']),
    url('/login/reset/<int:user_id>/<code>/', view_func=views.recover.reset_password,
        name='login_reset', methods=['GET', 'POST']),
    url('/logout/', view_func=views.login.logout, name='logout'),
    url('/register/', view_func=views.register.register, name='register', methods=['GET', 'POST']),
    url('/register/email/', view_func=views.register.register_email, name='register_email', methods=['GET', 'POST']),

    # Online users
    url('/online/', view_func=views.online.users_online, name='online'),

    # User Profile URls
    url('/user/', view_func=views.profile.user_profile_default, name='profile_default'),
    url('/user/<username>/', view_func=views.profile.user_profile, name='profile'),

    # User Settings URls
    url('/settings/', view_func=views.settings.user_settings, name='settings',
        methods=['GET', 'POST']),
    url('/settings/details/', view_func=views.settings.user_settings_details,
        name='settings_details', methods=['GET', 'POST']),
    url('/settings/username/', view_func=views.settings.user_settings_username,
        name='settings_username', methods=['GET', 'POST']),
    url('/settings/username/release/', view_func=views.settings.user_settings_username_release,
        name='settings_username_release', methods=['POST']),
    url('/settings/email/', view_func=views.settings.user_settings_email,
Beispiel #6
0
from saylua.routing import url

from . import views

urlpatterns = [
    url('/characters/', view_func=views.character_list, name='list'),
    url('/character/<canon_name>',
        view_func=views.character_profile,
        name='profile'),
]
Beispiel #7
0
from saylua.routing import url
from . import views, api

urlpatterns = [
    url('/arcade/', view_func=views.games_main, name="games"),
    url('/arcade/blocks/', view_func=views.games_blocks),
    url('/arcade/space/', view_func=views.games_space),
    url('/api/arcade/score/<int:game_id>/',
        methods=['POST'],
        view_func=api.api_send_score)
]
Beispiel #8
0
from saylua.routing import url
import views


urlpatterns = [
    # Messages
    url('/messages/', view_func=views.messages.messages_main, name="messages"),
    url('/messages/', view_func=views.messages.messages_main_post,
        name="messages_post", methods=['POST']),
    url('/messages/write/', view_func=views.messages.messages_write_new,
        name="messages_write", methods=['GET', 'POST']),
    url('/conversation_read/<key>/', view_func=views.messages.messages_read,
        name="messages_read"),
    url('/conversation/<key>/', view_func=views.messages.messages_view_conversation,
        name="messages_view_conversation", methods=['GET', 'POST']),

    # Notifications
    url('/notifications/', view_func=views.notifications.notifications_main,
        name="notifications"),
    url('/notifications/', view_func=views.notifications.notifications_main_post,
        name="notifications_post", methods=['POST']),
    url('/notification/<key>/', view_func=views.notifications.notification_read,
        name="notifications_follow")
]
Beispiel #9
0
from saylua.routing import url
from . import views

urlpatterns = [url('/admin/', view_func=views.admin_panel, name='admin_home')]
Beispiel #10
0
from saylua.routing import url
from . import views

urlpatterns = [
    url('/', view_func=views.main.home, name='home', methods=['GET']),
    url('/landing/',
        view_func=views.main.landing,
        name='landing',
        methods=['GET']),
    url('/banned/',
        view_func=views.main.banned,
        name='banned',
        methods=['GET']),
    url('/news/', view_func=views.news.newspaper, name='news',
        methods=['GET']),
    url('/news/puzzle/',
        view_func=views.news.puzzle,
        name='puzzle',
        methods=['GET']),
    url('/page/<template>/', view_func=views.main.view_page, name='view_page'),
    url('/theme/change/',
        view_func=views.main.change_theme,
        name='change_theme',
        methods=['POST']),
    url('/intro/side/',
        view_func=views.main.intro_side,
        name='intro_side',
        methods=['GET', 'POST']),
    url('/intro/companion/',
        view_func=views.main.intro_companion,
        name='intro_companion',
Beispiel #11
0
from saylua.routing import url
from . import views

urlpatterns = [
    url('/house/', view_func=views.main.house, name='house', methods=['GET']),
]
Beispiel #12
0
from saylua.routing import url
from . import views


urlpatterns = [
    # Bank URls
    url('/bank/', view_func=views.bank.bank_main, name='bank', methods=['GET', 'POST']),
    url('/bank/transfer/', view_func=views.bank.bank_transfer, name='bank_transfer', methods=['GET', 'POST']),

    # Market URls
    url('/market/', view_func=views.market.market_main, name='market', methods=['GET', 'POST']),

    # Shop URLs
    url('/shop/<name>/', view_func=views.shops.npc_shop_view, name='view_shop', methods=['GET', 'POST']),
]
Beispiel #13
0
from saylua.routing import url
from . import views

urlpatterns = [
    # Pet profiles and actions.
    url('/pet/<soul_name>/',
        view_func=views.general.pet_profile,
        name="profile",
        methods=['GET', 'POST']),
    url('/edit_pet/<soul_name>/',
        view_func=views.general.edit_pet,
        name="edit_pet",
        methods=['GET', 'POST']),
    url('/edit_mini/<soul_name>/',
        view_func=views.general.edit_mini,
        name="edit_mini",
        methods=['GET', 'POST']),
    url('/accompany/<soul_name>/',
        view_func=views.general.pet_accompany,
        name="accompany",
        methods=['POST']),
    url('/abandon/',
        view_func=views.general.pet_abandon,
        name="abandon",
        methods=['POST']),
    url('/reserve/',
        view_func=views.reserve.pet_reserve,
        name="reserve",
        methods=['GET']),
    url('/reserve/',
        view_func=views.reserve.pet_reserve_post,
Beispiel #14
0
from saylua.routing import url
from . import views

urlpatterns = [
    url('/avatar/', view_func=views.customize, name='avatar_customize', methods=['GET', 'POST'])
]

import api # noqa
Beispiel #15
0
from saylua.routing import url
from . import views

urlpatterns = [
    # Town Square.
    url('/town/', view_func=views.town_main, name='town', methods=['GET']),
    url('/free_items/',
        view_func=views.free_items,
        name='free_items',
        methods=['POST'])
]