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

13 lines
515 B
Python
Raw Normal View History

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.api.loginAPI import LoginAPI
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')
api.add_resource(UserAPI, '/api/user', '/api/user/byuid/<int:uid>', '/api/user/bylogin/<string:login>',
'/api/user/byemail/<string:email>')
api.add_resource(UserInfoAPI, '/api/userInfo')