-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
23 lines (18 loc) · 725 Bytes
/
app.py
File metadata and controls
23 lines (18 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Author: Birnadin Erick
# Copyright © 2021. All rights are reserved by Birnadin Erick.
# This script can be used without any written acknowledgement from author for personal or commercial purpose.
#
from flask import Flask
from flask_restful import Api
from resource_bounty import ResourceBounty
from resource_clan import ResourceClan
from resources.resource_bug import ResourceBug
from resources.resource_hunter import ResourceHunter
app = Flask(__name__) # app init
api = Api(app) # api init
api.add_resource(ResourceBug, '/bug')
api.add_resource(ResourceHunter, '/hunter')
api.add_resource(ResourceClan, '/clan')
api.add_resource(ResourceBounty, '/bounty')
if __name__ == '__main__':
app.run()