SiteFileController
struct SiteFileController : SiteControllerUtils
Serves static files used bye the Web UI front end. Since these files are UI-level and not API-level entities, we serve these files directly from here–there’s no need to forward calls through the API. This means if you’re an API client, you shouldn’t be using the files served from these endpoints.
Files dynamically created currently require a restart to pick up.
-
Declaration
Swift
func registerRoutes(_ app: Application) throws
-
Declaration
Swift
func streamCSSFile(_ req: Request) throws -> Response
-
Declaration
Swift
func streamImgFile(_ req: Request) throws -> Response
-
Declaration
Swift
func streamJSFile(_ req: Request) throws -> Response
-
Declaration
Swift
func streamMKFile(_ req: Request) throws -> Response
-
Declaration
Swift
func streamPublicFile(_ req: Request) throws -> Response
-
Declaration
Swift
func streamFaqFile(_ req: Request) throws -> Response
-
Declaration
Swift
func streamFavicon(_ req: Request) throws -> Response
-
Declaration
Swift
func streamFile(_ req: Request, basePath: String) throws -> Response