Added question generating API
This commit is contained in:
		@@ -26,7 +26,8 @@ $('form[name=form-quiz-start]').submit(function(event) {
 | 
			
		||||
        data: data,
 | 
			
		||||
        dataType: 'json',
 | 
			
		||||
        success: function(response) {
 | 
			
		||||
            window.location.href = "/admin/login/";
 | 
			
		||||
            var _id = response._id
 | 
			
		||||
            window.location.href = `/api/questions/${_id}`;
 | 
			
		||||
        },
 | 
			
		||||
        error: function(response) {
 | 
			
		||||
            if (typeof response.responseJSON.error === 'string' || response.responseJSON.error instanceof String) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user