public class AssetsController extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ASSETS_DIR |
static String |
FILENAME_PATH_PARAM |
Constructor and Description |
---|
AssetsController(AssetsControllerHelper assetsControllerHelper,
HttpCacheToolkit httpCacheToolkit,
MimeTypes mimeTypes,
NinjaProperties ninjaProperties) |
Modifier and Type | Method and Description |
---|---|
Result |
serveStatic()
Serves resources from the assets directory of your application.
|
Result |
serveWebJars()
Serves resources from the assets directory of your application.
|
public static final String ASSETS_DIR
public static final String FILENAME_PATH_PARAM
@Inject public AssetsController(AssetsControllerHelper assetsControllerHelper, HttpCacheToolkit httpCacheToolkit, MimeTypes mimeTypes, NinjaProperties ninjaProperties)
public Result serveStatic()
public Result serveWebJars()
Copyright © 2019 ninjaframework. All rights reserved.