In the previous article, we exploredAvalonia Cross-Platform: Part 45 – RestFul, and today I will share how to directly enableHttpListener in the backend and implement a simple configuration page:
1. The frontend is done with HTML + JS + CSS, and for the backend:
2. Return MIME types based on file extensions:
3. Read local files and return:
Let’s keep the final simple effect like this for now;If I have time in the future, I can explore more complex effects
; Programming never ends, bugs never cease, no bugs, no life
;The calmness of fixing bugs, the passion for coding, the joy of completion, the excitement of digging pits, and the thrill of filling them; perhaps this is the joy of a struggling programmer; that’s all for today; I hope to have the motivation to persist step by step; life never ends, and coding never stops; everyone can take a moment to check out the effects shared today, and if you have good opinions or ideas, feel free to leave a message on the message board; I will reply as soon as I see it, thank you all for your continuous silent attention and support!If you think it’s good, please give a thumbs up and follow!