overhaul of the rest package, made it a little bit more testable(WIP) and understandable
This commit is contained in:
parent
d4a7732535
commit
ad5ed58296
10
.drone.yml
Normal file
10
.drone.yml
Normal file
@ -0,0 +1,10 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: test
|
||||
image: golang
|
||||
commands:
|
||||
- go test ./...
|
||||
- go build ./...
|
@ -2,6 +2,8 @@
|
||||
|
||||
A mix of useful packages, some are works in progress.
|
||||
|
||||
[![Build Status](https://ci.j5y.xyz/api/badges/jchenry/x/status.svg)](https://ci.j5y.xyz/jchenry/x)
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
// EntityHandler returns a handler that provides restful verbs, following a CRUD model
|
||||
func EntityHandler(
|
||||
func restVerbHandler(
|
||||
get gohttp.Handler,
|
||||
post gohttp.Handler,
|
||||
put gohttp.Handler,
|
||||
|
Loading…
Reference in New Issue
Block a user