julianxhokaxhiu / LineageOTA

A simple OTA REST Server for LineageOS OTA Updater System Application
http://blog.julianxhokaxhiu.com/how-the-cm-ota-server-works-and-how-to-implement-and-use-ours
MIT License
221 stars 132 forks source link

Use a template instead of redirecting when visiting the web root #91

Closed toolstack closed 2 years ago

toolstack commented 2 years ago

With Github builds not being local, simply redirecting to /builds isn't very useful, so instead create a landing page with customizable templates.

Also some readme cleanups.

toolstack commented 2 years ago

I used the built in template engine in Flight, didn't see a need to go outside of that. Is there any significant benfit to using Twig?

julianxhokaxhiu commented 2 years ago

I used the built in template engine in Flight, didn't see a need to go outside of that. Is there any significant benfit to using Twig?

I prefer to have a clear separation between code and HTML pages. I'm not a big fan of mixing PHP with HTML :) Also instead of the classic MVC, I prefer the MVVM approach, which is exactly what you are doing there.

toolstack commented 2 years ago

Ok, that doc was very old, but I got it working.

julianxhokaxhiu commented 2 years ago

Fantastic work, thank you :)