0.0.12 • Published 6 years ago

@ra-data-simple-rest-backend/koa-sequelize v0.0.12

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Koa Sequelize

Build API for React admin simple rest client in a project using Koa and Sequelize.

Install

yarn add @ra-data-simple-rest-backend/koa-sequelize

Usage

import Koa from 'koa'
import koaBody from 'koa-body'

import { User } from './models'

const app = new Koa()
app.use(koaBody())

const router = rest('/users', User, [CREATE, GET_LIST, GET_ONE, UPDATE, DELETE ])
app.use(router.routes()).use(router.allowedMethods())
0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago