Skip to content

Instantly share code, notes, and snippets.

View imkarimkarim's full-sized avatar
🔭
crawling the internet

karim imkarimkarim

🔭
crawling the internet
View GitHub Profile
git commit conventions:
https://github.com/conventional-changelog/commitlint#what-is-commitlint
https://www.conventionalcommits.org/en/v1.0.0/#specification
# examples
type(scope?): subject
feat: add espanol lanugage
fix(ui): bug in submit button
@imkarimkarim
imkarimkarim / products.js
Last active November 11, 2022 07:54
strapi in app auth: only let authed users CUD their enteties, not other users... (i implemented for store and its child(product) content-type here but you can extend...)
"use strict";
const { getStoreOfProduct, isUserOwnsStore } = require("../../../lib/utils");
/**
* product service
*/
const { createCoreService } = require("@strapi/strapi").factories;