Skip to content

Instantly share code, notes, and snippets.

View iiegor's full-sized avatar

Iegor Azuaga iiegor

View GitHub Profile
(function() {
'use strict';
var app = (function() {
var modules = [];
var init = function() {
fonts;
};
@v1vendi
v1vendi / api_generator.js
Created August 20, 2019 19:19
REST API functional generator
const fetch = (...args) => console.log(...args) // mock
function httpRequest(url, method, data) {
const init = { method }
switch (method) {
case 'GET':
if (data) url = `${url}?${new URLSearchParams(data)}`
break
case 'POST':
case 'PUT':
case 'PATCH':