summaryrefslogtreecommitdiff
path: root/app/index.js
diff options
context:
space:
mode:
authorSean Fridman <fridman@mail.sfsu.edu>2015-04-08 22:29:42 -0400
committerSean Fridman <fridman@mail.sfsu.edu>2015-04-08 22:29:42 -0400
commit959e8f4faed2fc35052bdcba06352f5aa4bf547a (patch)
tree472337202a978123016bd5df6f4d9c2893381bf1 /app/index.js
parent2a5eb659a24261aac290a780fb5cfac97699fca6 (diff)
Add image endpoint skeleton
Diffstat (limited to 'app/index.js')
-rw-r--r--app/index.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/app/index.js b/app/index.js
index 4ec8730..b9958c2 100644
--- a/app/index.js
+++ b/app/index.js
@@ -13,6 +13,7 @@ var OKResource = require('okresource')
var OKTemplate = require('oktemplate');
var OKServer = require('okserver');
var OKSchema = require('okschema');
+var OKImageService = require('okservices').OKImageService;
/**
* OKCMS!
@@ -85,6 +86,11 @@ function OKCMS(options) {
this._createAdminViews(adminPath, app, express, resourceConfig,
resourceCache, adminTemplateProvider, adminMeta);
+ // Create services
+ var imageService = OKImageService({
+ express: express
+ });
+
var server = this._server = new OKServer({
express: express,
app: app,
@@ -93,7 +99,10 @@ function OKCMS(options) {
// Specify root folders and paths for serving static assets
root: root,
adminRoot: adminRoot,
- adminPath: adminPath
+ adminPath: adminPath,
+ services: {
+ image: imageService
+ }
});
}