mirror of
https://github.com/Llloooggg/TextSouls.git
synced 2026-03-06 20:46:23 +03:00
17 lines
464 B
Python
17 lines
464 B
Python
from flask import Blueprint
|
|
|
|
from textsouls.common.views import register_api
|
|
from textsouls.models import User
|
|
|
|
from textsouls.models import CharacterRace
|
|
from textsouls.models import CharacterClass
|
|
from textsouls.models import Character
|
|
|
|
main = Blueprint("main", __name__)
|
|
|
|
register_api(main, User, "users")
|
|
|
|
register_api(main, CharacterRace, "charachter-races")
|
|
register_api(main, CharacterClass, "charachter-classes")
|
|
register_api(main, Character, "character")
|