Reputation: 23
I have created a simple game in JS and now I am trying to implement it in an iOS app. The best way I could think of doing that is by running a local Webserver in the iOS App using Vapor. But I don't really know how to load my existing HTML/JS files.
Upvotes: 2
Views: 670
Reputation: 5620
You can use the FileMiddleware to serve static assets from a Vapor server, including existing JS and HTML files
Upvotes: 2