Skip to content

Instantly share code, notes, and snippets.

View pazel-io's full-sized avatar

Parham pazel-io

View GitHub Profile
/**
* Handler that will be called during the execution of a PreUserRegistration flow.
*
* @param {Event} event - Details about the context and user that is attempting to register.
* @param {PreUserRegistrationAPI} api - Interface whose methods can be used to change the behavior of the signup.
*/
const axios = require('axios');
exports.onExecutePreUserRegistration = async (event, api) => {
@pazel-io
pazel-io / app-routing.module.ts
Last active October 18, 2020 06:11
application router
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
const routes: Routes = [
{
path: '',
redirectTo: 'home',
pathMatch: 'full',
},
{
Generating ES5 bundles for differential loading...
ES5 bundle generation complete.
chunk {2} polyfills-es2015.2987770fde9daa1d8a2e.js (polyfills) 36.4 kB [initial] [rendered]
chunk {3} polyfills-es5.ef4b1e1fc703b3ff76e3.js (polyfills-es5) 122 kB [initial] [rendered]
chunk {0} runtime-es2015.fb68eabc5807d4d76548.js (runtime) 2.24 kB [entry] [rendered]
chunk {0} runtime-es5.fb68eabc5807d4d76548.js (runtime) 2.23 kB [entry] [rendered]
chunk {5} 5-es2015.861bfb692197a948cb09.js () 518 bytes [rendered]
chunk {5} 5-es5.861bfb692197a948cb09.js () 526 bytes [rendered]
chunk {1} main-es2015.4919518bff4d3873c671.js (main) 277 kB [initial] [rendered]
chunk {1} main-es5.4919518bff4d3873c671.js (main) 311 kB [initial] [rendered]