aboutsummaryrefslogtreecommitdiff
path: root/web
AgeCommit message (Collapse)Author
2021-03-02Add simple web interfaceJohn Ankarström
The structure is preliminary. It might be a better idea to start Sinatra in a main script, which decides what interface to use. The question is whether non-Sinatra interfaces should be supported. Most will likely use Sinatra, but perhaps not all. With that in mind, how should it be decided which interface to use? The best idea is probably to have a protocols directory, with one script per protocol. http.rb would be the HTTP server, using Sinatra, while ftp.rb or whatever could be run alongside it. Alternatively, there could be the following structure: interfaces/ - http/ - http.rb - web/ - web.rb - views/ - admin/ - rss/ - ftp/ - ftp.rb That would probably be the cleanest implementation.