apertium / apertium-apy

📦 Apertium HTTP Server in Python
https://wiki.apertium.org/wiki/Apertium-apy
GNU General Public License v3.0
32 stars 42 forks source link

Nicer landing page #124

Closed ayushjainrksh closed 5 years ago

ayushjainrksh commented 5 years ago

When running apertium-html-tools using docker-compose up, if I try to visit localhost:2737/ it takes me to http://wiki.apertium.org/wiki/Apertium-apy. Visiting this route should show a status page with a link to wiki.

sushain97 commented 5 years ago

This is the intended behavior. I'd rather not have APy serve any complex HTML. Moreover, having the redirect work is already saying that APy is up (i.e. its status).

unhammer commented 5 years ago

I find the redirect a bit annoying and confusing.

I agree it shouldn't serve complex html, but it's not very complex to just say "this is apy, here are the docs"

sushain97 commented 5 years ago

Ideally, it would serve the swagger HTML/JS like stats-service:

http://apertium.projectjj.com/stats-service/

Alas, until then ~10 lines of unstyled HTML is fine with me.

utkarsh-raj commented 5 years ago

Can I be assigned to the task @sushain97 ?

unhammer commented 5 years ago

Anyone's free to create a pull request

utkarsh-raj commented 5 years ago

Great, I will try to reproduce and look into it. Thanks.