This repository has been archived on 2021-09-15. You can view files and clone it, but cannot push or open issues or pull requests.
M2OLA/backend/app/urls.py

15 lines
661 B
Python
Raw Normal View History

2017-03-17 09:08:50 +01:00
from app.api.GroupAPI import GroupAPI
from app.api.LoginAPI import LoginAPI
from app.api.UserAPI import UserAPI
2017-01-26 17:16:23 +01:00
from app.api.UserInfoAPI import UserInfoAPI
from app.api.exampleapi import SomeApi
2017-01-23 15:50:05 +01:00
from app.core import api
2017-01-20 17:04:12 +01:00
# Some Api resource
api.add_resource(SomeApi, '/api/someapi', '/api/someapi/<int:id>')
2017-03-07 06:03:48 +01:00
api.add_resource(LoginAPI, '/api/login')
2017-03-17 09:08:50 +01:00
api.add_resource(UserInfoAPI, '/api/userInfo')
api.add_resource(UserAPI, '/api/user', '/api/user/byuid/<int:uid>', '/api/user/byemail/<string:email>',
'/api/user/byhash/<string:hashcode>')
2017-03-17 09:08:50 +01:00
api.add_resource(GroupAPI, '/api/group', '/api/group/bygid/<int:gid>', '/api/group/byname/<string:name>')