Working API for subscribing and unsubscribing
This commit is contained in:
parent
d5222f7b4d
commit
11f412ded1
15 changed files with 439 additions and 24 deletions
2
app.js
2
app.js
|
@ -30,6 +30,7 @@ let segments = require('./routes/segments');
|
|||
let webhooks = require('./routes/webhooks');
|
||||
let subscription = require('./routes/subscription');
|
||||
let archive = require('./routes/archive');
|
||||
let api = require('./routes/api');
|
||||
|
||||
let app = express();
|
||||
|
||||
|
@ -172,6 +173,7 @@ app.use('/segments', segments);
|
|||
app.use('/webhooks', webhooks);
|
||||
app.use('/subscription', subscription);
|
||||
app.use('/archive', archive);
|
||||
app.use('/api', api);
|
||||
|
||||
// catch 404 and forward to error handler
|
||||
app.use((req, res, next) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue