You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
474 B
Python
15 lines
474 B
Python
from aiohttp import web
|
|
|
|
from server.controller.Hanja import Hanja
|
|
from server.controller.Hanzi import Hanzi
|
|
from server.controller.Kanji import Kanji
|
|
|
|
def register_route(app: web.Application):
|
|
app.router.add_routes([
|
|
web.route('*', '/hanzi/pinyin/', Hanzi.hanziToPinyin),
|
|
web.route('*', '/hanzi/split/', Hanzi.splitHanzi),
|
|
|
|
web.route('*', '/kanji/romaji/', Kanji.kanji2romaji),
|
|
|
|
web.route('*', '/hanja/romaja/', Hanja.hanja2roma),
|
|
]) |