go-paste/main.go
2018-02-15 08:01:35 -07:00

39 lines
771 B
Go

// 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
package main // import "sour.is/x/paste"
import (
"sour.is/go/httpsrv"
_ "sour.is/x/paste/routes"
)
func main() {
if args["serve"] == true {
httpsrv.Run()
}
}