Skip to content

Commit

Permalink
#24 more specific routing
Browse files Browse the repository at this point in the history
  • Loading branch information
hallahan committed May 12, 2016
1 parent dcdce41 commit c03d62f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,17 @@ app.get('/omk/info', info);
// server path.
app.use('/', odkOpenRosa);


/**
* Authentication for all omk routes.
* Authentication routes.
*
* Note that OpenRosa routes pass through without auth.
* We can't lock down /omk/data/forms route, because that
* breaks /formList
*/
app.use('/omk', auth);
app.use('/omk/odk', auth);
app.use('/omk/data/submissions', auth);
app.use('/omk/pages', auth);


// Open Data Kit Aggregate
Expand Down

0 comments on commit c03d62f

Please sign in to comment.