mirror of
https://github.com/Luzifer/tex-api.git
synced 2024-11-09 16:50:03 +00:00
Remove never implemented api docs
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
6048a58d28
commit
cde16a2f2d
1 changed files with 0 additions and 5 deletions
5
main.go
5
main.go
|
@ -108,7 +108,6 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
router.HandleFunc("/", apiDocs).Methods("GET").Name("apiDocs")
|
|
||||||
router.HandleFunc("/job", startNewJob).Methods("POST").Name("startNewJob")
|
router.HandleFunc("/job", startNewJob).Methods("POST").Name("startNewJob")
|
||||||
router.HandleFunc("/job/{uid:[0-9a-z-]{36}}", getJobStatus).Methods("GET").Name("getJobStatus")
|
router.HandleFunc("/job/{uid:[0-9a-z-]{36}}", getJobStatus).Methods("GET").Name("getJobStatus")
|
||||||
router.HandleFunc("/job/{uid:[0-9a-z-]{36}}/wait", waitForJob).Methods("GET").Name("waitForJob")
|
router.HandleFunc("/job/{uid:[0-9a-z-]{36}}/wait", waitForJob).Methods("GET").Name("waitForJob")
|
||||||
|
@ -128,10 +127,6 @@ func pathFromUUID(uid uuid.UUID, filename string) string {
|
||||||
return path.Join(cfg.StorageDir, uid.String(), filename)
|
return path.Join(cfg.StorageDir, uid.String(), filename)
|
||||||
}
|
}
|
||||||
|
|
||||||
func apiDocs(res http.ResponseWriter, r *http.Request) {
|
|
||||||
http.Error(res, "Not implemented yet", http.StatusInternalServerError)
|
|
||||||
}
|
|
||||||
|
|
||||||
func startNewJob(res http.ResponseWriter, r *http.Request) {
|
func startNewJob(res http.ResponseWriter, r *http.Request) {
|
||||||
jobUUID := uuid.Must(uuid.NewV4())
|
jobUUID := uuid.Must(uuid.NewV4())
|
||||||
inputFile := pathFromUUID(jobUUID, filenameInput)
|
inputFile := pathFromUUID(jobUUID, filenameInput)
|
||||||
|
|
Loading…
Reference in a new issue