mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added button for generating channelname in frontpage
This commit is contained in:
@@ -15,6 +15,10 @@ router.route('/api/frontpages').get(function(req, res) {
|
||||
});
|
||||
});
|
||||
|
||||
router.route('/api/generate_name').get(function(req, res) {
|
||||
Functions.generate_channel_name(res);
|
||||
});
|
||||
|
||||
router.route('/api/list/:channel_name').get(function(req, res) {
|
||||
res.header("Access-Control-Allow-Origin", "*");
|
||||
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
|
||||
|
||||
Reference in New Issue
Block a user