go-paste/cmd/paste/main.go

42 lines
897 B
Go
Raw Normal View History

2017-04-14 16:15:07 -06:00
// Package Paste API.
//
// the purpose of this application is to provide an application
// that is using plain go code to define an API
//
// Terms Of Service:
//
// there are no TOS at this moment, use at your own risk we take no responsibility
//
// Schemes: http, https
// Host: paste.sour.is
// BasePath: /
// Version: 0.0.1
// License: MIT http://opensource.org/licenses/MIT
// Contact: Xuu <me@sour.is> https://sour.is
//
// Consumes:
// - application/json
// - text/plain
//
// Produces:
// - application/json
// - text/plain
//
//
// swagger:meta
2018-03-14 07:18:19 -06:00
package main // import "sour.is/x/paste/cmd/paste"
2017-04-14 16:15:07 -06:00
import (
2018-03-13 13:38:04 -06:00
"sour.is/x/toolbox/httpsrv"
2018-03-14 07:18:19 -06:00
_ "sour.is/x/paste/src/routes"
_ "sour.is/x/paste/src/docs"
2017-04-14 16:15:07 -06:00
)
func main() {
if args["serve"] == true {
httpsrv.Run()
}
}
2018-03-14 07:18:19 -06:00
//go:generate swagger generate spec -o ../../src/docs/public/swagger.json