Skip to content

Xiaoyang-Huang/typeorm-rest-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A express middleware to create restful api for typeORM entities.

usage:

import createTypeORMAPI from "@xy/typeorm-rest-middleware";
const app = express();
app.use(
  createTypeORMAPI(connection, {
    disable: {
      Permission: ["ADD", "REMOVE", "UPDATE"]
      // entityName: ["disabled function in LIST,ADD,REMOVE,UPDATE,REMOVE"]
    }
  })
);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published