1
0
mirror of https://github.com/Luzifer/tex-api.git synced 2024-09-19 09:32:56 +00:00

Remove never implemented api docs

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-09-17 12:21:52 +02:00
parent 6048a58d28
commit cde16a2f2d
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E

View File

@ -108,7 +108,6 @@ func init() {
}
func main() {
router.HandleFunc("/", apiDocs).Methods("GET").Name("apiDocs")
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}}/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)
}
func apiDocs(res http.ResponseWriter, r *http.Request) {
http.Error(res, "Not implemented yet", http.StatusInternalServerError)
}
func startNewJob(res http.ResponseWriter, r *http.Request) {
jobUUID := uuid.Must(uuid.NewV4())
inputFile := pathFromUUID(jobUUID, filenameInput)