globalwordnet / OMW

The Open Multilingual Wordnet
http://compling.hss.ntu.edu.sg/omw/
MIT License
58 stars 9 forks source link

Move URL routes to views module #50

Open goodmami opened 5 years ago

goodmami commented 5 years ago

The __init__.py file has a lot going on. The __init__.py should generally just contain the necessary code to make imports work as you expect/want them to, and not have a lot of other definitions. One part of OMW's __init__.py that can be easily moved out is the URL routes, and the standard place to put them is in a views.py file. At some point we may want to create Flask blueprints for the various facets of OMW (e.g., one for queries, one for authentication, one for upload and validation, etc.), but for now we can just put them in a single module.